Views & Logik Membership, Fetprofile, Gremium

This commit is contained in:
Andreas Stephanides
2013-08-25 17:44:42 +02:00
parent bc8942a6ab
commit 759632948e
10 changed files with 79 additions and 26 deletions

View File

@@ -0,0 +1,24 @@
<ul class="nav nav-tabs">
<li <%= (request.fullpath == fetprofiles_path(filter: "active")|| request.fullpath == fetprofiles_path) ? 'class="active"'.html_safe : ''%> >
<%= link_to "Aktive Mitglieder" , fetprofiles_path( filter: "active") %> </li>
<% for g in @gremientabs %>
<li <%= (!@gremium.nil? && g == @gremium) ? 'class="active"'.html_safe : '' %> title="<%= g.name %>">
<%= link_to g.name, g %>
</li>
<% end %>
<li <%= (request.fullpath == fetprofiles_path(filter: "all")) ? 'class="active"'.html_safe : ''%> >
<%= link_to "Alle Mitglieder" , fetprofiles_path( filter: "all") %> </li>
<% if can?(:verwalten,Gremium) %>
<% if request.fullpath == gremien_path %>
<li class="active pull-right">
<% else %>
<li class="pull-right">
<% end %>
<%= link_to "Verwaltung", gremien_path %>
</li>
<% end %>
</ul>