rechte fix

This commit is contained in:
Andreas Stephanides
2014-02-07 22:15:38 +01:00
parent 50bceaf017
commit 1e36d810dc

View File

@@ -2,10 +2,12 @@
<li <%= 'class="active"'.html_safe if (request.fullpath == rubriken_path)%> >
<%= link_to I18n.t('rubriken.alle') , rubriken_path %> </li>
<% for r in Rubrik.all %>
<% if can?(:show, r) %>
<li <%= (!@rubrik.nil? && r == @rubrik) ? 'class="active"'.html_safe : '' %> title="<%= r.name %>">
<%= link_to r.name, r %>
</li>
<% end %>
<% end %>
<% if can? :verwalten, Rubrik%>
<% if request.fullpath == verwalten_rubriken_path %>
<li class="active pull-right">