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)%> >
|
<li <%= 'class="active"'.html_safe if (request.fullpath == rubriken_path)%> >
|
||||||
<%= link_to I18n.t('rubriken.alle') , rubriken_path %> </li>
|
<%= link_to I18n.t('rubriken.alle') , rubriken_path %> </li>
|
||||||
<% for r in Rubrik.all %>
|
<% for r in Rubrik.all %>
|
||||||
|
<% if can?(:show, r) %>
|
||||||
<li <%= (!@rubrik.nil? && r == @rubrik) ? 'class="active"'.html_safe : '' %> title="<%= r.name %>">
|
<li <%= (!@rubrik.nil? && r == @rubrik) ? 'class="active"'.html_safe : '' %> title="<%= r.name %>">
|
||||||
<%= link_to r.name, r %>
|
<%= link_to r.name, r %>
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<% end %>
|
||||||
<% if can? :verwalten, Rubrik%>
|
<% if can? :verwalten, Rubrik%>
|
||||||
<% if request.fullpath == verwalten_rubriken_path %>
|
<% if request.fullpath == verwalten_rubriken_path %>
|
||||||
<li class="active pull-right">
|
<li class="active pull-right">
|
||||||
|
|||||||
Reference in New Issue
Block a user