Rechtemanagement integriert in views

This commit is contained in:
Andreas Stephanides
2013-08-15 11:46:41 +02:00
parent de83a40683
commit 0f6559bce6
5 changed files with 10 additions and 6 deletions

View File

@@ -6,6 +6,7 @@
<%= link_to c.name, c %>
</li>
<% end %>
<% if can?(:verwalten,Calendar) %>
<% if request.fullpath == calendars_verwalten_path %>
<li class="active pull-right">
<% else %>
@@ -13,4 +14,5 @@
<% end %>
<%= link_to "Verwaltung", calendars_verwalten_path %>
</li>
<% end %>
</ul>