forked from bofh/fetsite
rechte fix
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user