Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ncammarata
Created February 24, 2016 04:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ncammarata/6afd39f27f1d3b1607ae to your computer and use it in GitHub Desktop.
Save ncammarata/6afd39f27f1d3b1607ae to your computer and use it in GitHub Desktop.
const meetingName = t =>
t == MeetingType.EBoard ? 'Executive Board' : 'Brotherhood'
const brothersName = bs => {
const none = (bs.length > 0 ? '*none' : '')
return bs ? '* ' + bs.map(b => b.name).join('\n* ') : none
}
const present = bs => bs.filter(b => b.isPresent)
const absent = bs => bs.filter(b => !b.isPresent && (isEBoard ? b.rank : true))
view RenderedMinutes {
prop meetingType, date, brothers, noteContent
const getMarkdown = () => `
## Minutes of the ${meetingName(meetingType)} Meeting \
of the Alpha Kappa Chapter of the Alpha Epsilon Pi Fraternity
### ${moment(date).format(FMT.LongDate)}
The following members were present at meeting:
${brothersName(present(brothers))}
The following members were absent from meeting:
${brothersName(absent(brothers))}
${notesContent}
`
<pre>{getMarkdown()}</pre>
$ = {
overflow: 'scroll',
height: '879px'
}
$pre = {
padding: 20,
paddingTop: 10,
paddingBottom: 0,
width: '100%',
whiteSpace: 'pre-wrap',
overflow: 'scroll',
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment