mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-11-15 01:11:23 +00:00
Added Button to show user history for admins
This commit is contained in:
parent
39758ff86c
commit
7b32035f67
1 changed files with 3 additions and 0 deletions
|
@ -43,5 +43,8 @@
|
|||
<%= link_to 'Edit', edit_user_path(@user), class: 'button' %>
|
||||
<%= link_to 'My Agenda', "/users/agenda/#{cuser.id}", class: 'button' %>
|
||||
<% end %>
|
||||
<% if cuser and cuser.admin? %>
|
||||
<%= link_to 'Show History', "/users/history/#{@user.id}", class: 'button' %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in a new issue