ensl.org/app/views/application/_gather.html.erb

10 lines
491 B
Text
Raw Normal View History

<div id="gather-status">
2014-04-06 14:14:03 +00:00
<% if cuser && (gather = cuser.gathers.active.ordered.first) %>
<%= link_to t('gather.status.joined'), gather %>
<% elsif Gather.last && (Gather::FULL - Gather.last.gatherers.count) == 12 %>
Be first to join the <%= link_to t('activerecord.models.gather'), Gather.last %>!
<% elsif Gather.last %>
<%= link_to t('activerecord.models.gather'), Gather.last %> running, <%= Gather::FULL - Gather.last.gatherers.count %> more needed.
<% end %>
</div>