add_view_account_hooks.patch

Arthur Andersen, 2016-11-23 12:38

Download (1.58 KB)

View differences:

app/views/users/show.html.erb
1 1
<div class="contextual">
2
<%= call_hook(:view_account_contextual, :user => @user) %>
2 3
<%= link_to(l(:button_edit), edit_user_path(@user), :class => 'icon icon-edit') if User.current.admin? %>
3 4
</div>
4 5

  
5
- 
app/views/users/index.html.erb
46 46
  <td class="created_on"><%= format_time(user.created_on) %></td>
47 47
  <td class="last_login_on"><%= format_time(user.last_login_on) unless user.last_login_on.nil? %></td>
48 48
    <td class="buttons">
49
      <%= call_hook(:view_account_list_buttons, :user => user) %>
49 50
      <%= change_status_link(user) %>
50 51
      <%= delete_link user_path(user, :back_url => request.original_fullpath) unless User.current == user %>
51 52
    </td>
52
-