Commit e3d96fc2 authored by Marin Jankovski's avatar Marin Jankovski

Remove table duplication.

parent ac9f9ae1
- if defined?(events)
%table.table#audits
%thead
%tr
%th
%th
%th Author
%th
%th
%th Action
%th
%th Target
%th
%th At
%tbody
- events.each do |event|
%tr
%td
%td
%td #{event.author_name}
%td
%td
%td #{raw human_text(event.details)}
%td
%td #{event.details['target_details']}
%td
%td #{event.created_at}
= paginate events
.row
.col-md-2
= render 'groups/settings_nav'
......@@ -8,31 +6,4 @@
%h3.page-title Group Audit Events
%p.light Events in #{@group.name}
%table.table#audits
%thead
%tr
%th
%th
%th Author
%th
%th
%th Action
%th
%th Target
%th
%th At
%tbody
- @events.each do |event|
%tr
%td
%td
%td #{event.author_name}
%td
%td
%td #{raw human_text(event.details)}
%td
%td #{event.details['target_details']}
%td
%td #{event.created_at}
= paginate @events
= render 'event_table', events: @events
%h3.page-title Project Audit Events
%p.light Events in #{@project.path_with_namespace}
%table.table#audits
%thead
%tr
%th
%th
%th Author
%th
%th
%th Action
%th
%th Target
%th
%th At
%tbody
- @events.each do |event|
%tr
%td
%td
%td #{event.author_name}
%td
%td
%td #{raw human_text(event.details)}
%td
%td #{event.details['target_details']}
%td
%td #{event.created_at}
= paginate @events
= render 'event_table', events: @events
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment