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