Skip to content

Instantly share code, notes, and snippets.

@EGreg
Created March 15, 2015 19:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EGreg/e2e9dbb1dcf5c55ca2d2 to your computer and use it in GitHub Desktop.
Save EGreg/e2e9dbb1dcf5c55ca2d2 to your computer and use it in GitHub Desktop.
Group template
{{&tool "Streams/participants" "group" max=10 maxShow=10 showSummary=false showControls=true showBlanks=true }}
<div class="Q_big_prompt Groups_going_prompt">
Are you in?
<span class="Groups_going" data-going="{{going}}">
<span data-going="no" class="Groups_no {{no}}">No
</span><span data-going="maybe" class="Groups_maybe {{maybe}}">Maybe
</span><span data-going="yes" class="Groups_yes {{yes}}">Yes</span>
</span>
</div>
<table class="Groups_info">
<tr class="Groups_people">
<td>{{&iconPeople}}</td>
<td class="Groups_info_content">
10 people max
</td>
</tr>
<tr class="Groups_time">
<td>{{&iconTime}}</td>
<td class="Groups_info_content">
{{&tool "Q/timestamp"}}
</td>
</tr>
<tr class="Groups_interests">
<td>{{&iconInterests}}</td>
<td class="Groups_info_content">
{{&interest.title}}<br>
</td>
</tr>
<tr class="Groups_local">
<td>{{&iconLocation}}</td>
<td class="Groups_info_content">
{{call "stream.getAttribute" "venue"}}<br>
{{call "stream.getAttribute" "address"}}
</td>
</tr>
</table>
<div class="Groups_calendar_add">
<button class="Q_button Groups_button_action">
{{&iconCalendar}}
Add to calendar
</button>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment