Sha256: 8694501e994f46a64aa1067e75523e6c7b15de8f7a0c9d7aacd664d345702890

Contents?: true

Size: 681 Bytes

Versions: 8

Compression:

Stored size: 681 Bytes

Contents

<%= content_tag(:tr, :id => dom_id(event), :class => "event") do -%>
  <td><%= I18n.l(event.created_at, :format => "%d.%m.%Y") %></td>
  <% if event.user -%>
    <td><%= link_to event.user.name, edit_path(:model_name => "users", :id => event.user_id) %></td>
  <% else -%>
    <td><%= event.username || [event.user_type, event.user_id].join('#') %></td>
  <% end -%>
  <td><%= event.action %></td>
  <td>
    <%= link_to_if ['create', 'update'].include?(event.action), 
      [event.auditable_type, event.auditable_id].join('#'), 
      edit_path(:model_name => event.auditable_type.tableize, :id => event.auditable_id) %>
  </td>
  <td><%= event.remote_address %></td>
<% end -%>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sunrise-cms-0.4.2 app/views/sunrise/dashboard/_event.html.erb
sunrise-cms-0.4.1 app/views/sunrise/dashboard/_event.html.erb
sunrise-cms-0.4.0 app/views/sunrise/dashboard/_event.html.erb
sunrise-cms-0.3.3 app/views/sunrise/dashboard/_event.html.erb
sunrise-cms-0.3.2 app/views/sunrise/dashboard/_event.html.erb
sunrise-cms-0.3.1 app/views/sunrise/dashboard/_event.html.erb
sunrise-cms-0.3.0 app/views/sunrise/dashboard/_event.html.erb
sunrise-cms-0.3.0.rc2 app/views/sunrise/dashboard/_event.html.erb