summaryrefslogtreecommitdiff
path: root/app/views/profiles/_event_table.html.haml
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-07-03 14:54:50 +0300
committerValery Sizov <vsv2711@gmail.com>2015-07-03 19:33:54 +0300
commit426fa9164ea9d91f19db84810ac00f74fc65124a (patch)
treeb7065383f5217f0b83cb2ba00cd4bfa3bfd218cc /app/views/profiles/_event_table.html.haml
parent8ba83cbab86349c5fa5ce5034df6ffc8225f137c (diff)
downloadgitlab-ce-audit_log.tar.gz
Audit log for user authenticationaudit_log
Diffstat (limited to 'app/views/profiles/_event_table.html.haml')
-rw-r--r--app/views/profiles/_event_table.html.haml17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/views/profiles/_event_table.html.haml b/app/views/profiles/_event_table.html.haml
new file mode 100644
index 00000000000..269cb564cc2
--- /dev/null
+++ b/app/views/profiles/_event_table.html.haml
@@ -0,0 +1,17 @@
+- if defined?(events)
+ %table.table#audits
+ %thead
+ %tr
+ %th Action
+ %th When
+
+ %tbody
+ - events.each do |event|
+ %tr
+ %td
+ %span
+ Signed in with
+ %b= event.details[:with]
+ authentication
+ %td #{time_ago_in_words event.created_at} ago
+ = paginate events, theme: "gitlab"