mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-11-15 01:11:23 +00:00
Merge pull request #101 from Absurdon/master
Added Button to show user history for admins
This commit is contained in:
commit
a3a7e92789
1 changed files with 3 additions and 0 deletions
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue