Merge pull request #101 from Absurdon/master

Added Button to show user history for admins
This commit is contained in:
Absurdon 2017-03-07 01:50:57 +01:00 committed by GitHub
commit a3a7e92789

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>