Added Button to show user history for admins

This commit is contained in:
Absurdon 2017-03-07 01:45:39 +01:00
parent 39758ff86c
commit 7b32035f67

View file

@ -43,5 +43,8 @@
<%= link_to 'Edit', edit_user_path(@user), class: 'button' %> <%= link_to 'Edit', edit_user_path(@user), class: 'button' %>
<%= link_to 'My Agenda', "/users/agenda/#{cuser.id}", class: 'button' %> <%= link_to 'My Agenda', "/users/agenda/#{cuser.id}", class: 'button' %>
<% end %> <% end %>
<% if cuser and cuser.admin? %>
<%= link_to 'Show History', "/users/history/#{@user.id}", class: 'button' %>
<% end %>
</div> </div>