forked from bofh/fetsite
Rechtemanagement integriert in views
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -27,8 +27,8 @@
|
||||
</div>
|
||||
<div class="row-fluid">
|
||||
<div class="btn-group">
|
||||
<%= link_to 'New Entry', new_calentry_path, {:class=>"btn"} %>
|
||||
<%= link_to 'Edit', edit_calendar_path(@calendar), {:class=>"btn"} %>
|
||||
<%= link_to 'New Entry', new_calentry_path, {:class=>"btn"} unless cannot? :new, Calendar%>
|
||||
<%= link_to 'Edit', edit_calendar_path(@calendar), {:class=>"btn"} unless cannot? :edit, Calendar %>
|
||||
<%= link_to 'Back', calendars_path, {:class=>"btn"} %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Back', rubrik_path(@rubrik) %>
|
||||
<%= link_to 'Back', rubrik_path(@rubrik) unless @rubrik.nil? %>
|
||||
|
||||
Reference in New Issue
Block a user