parent
1fe9b93329
commit
61c30061e7
4 changed files with 32 additions and 21 deletions
|
@ -14,6 +14,7 @@
|
|||
.prepend-left-10 { margin-left:10px }
|
||||
.prepend-left-default { margin-left:$gl-padding }
|
||||
.prepend-left-20 { margin-left:20px }
|
||||
.append-right-5 { margin-right: 5px }
|
||||
.append-right-10 { margin-right:10px }
|
||||
.append-right-20 { margin-right:20px }
|
||||
.append-bottom-10 { margin-bottom:10px }
|
||||
|
|
|
@ -10,6 +10,15 @@ module IconsHelper
|
|||
options.include?(:base) ? fa_stacked_icon(names, options) : fa_icon(names, options)
|
||||
end
|
||||
|
||||
def audit_icon(names, options = {})
|
||||
case names
|
||||
when "standard"
|
||||
names = "key"
|
||||
end
|
||||
|
||||
options.include?(:base) ? fa_stacked_icon(names, options) : fa_icon(names, options)
|
||||
end
|
||||
|
||||
def spinner(text = nil, visible = false)
|
||||
css_class = 'loading'
|
||||
css_class << ' hide' unless visible
|
||||
|
|
|
@ -1,17 +1,15 @@
|
|||
.table-holder
|
||||
%table.table#audits
|
||||
%thead
|
||||
%tr
|
||||
%th Action
|
||||
%th When
|
||||
%h5.prepend-top-0
|
||||
History of authentications
|
||||
|
||||
%tbody
|
||||
%ul.well-list
|
||||
- events.each do |event|
|
||||
%tr
|
||||
%td
|
||||
%span
|
||||
%li
|
||||
%span.description
|
||||
= audit_icon(event.details[:with], class: "append-right-5")
|
||||
Signed in with
|
||||
%b= event.details[:with]
|
||||
= event.details[:with]
|
||||
authentication
|
||||
%td #{time_ago_in_words event.created_at} ago
|
||||
%span.pull-right
|
||||
#{time_ago_in_words event.created_at} ago
|
||||
|
||||
= paginate events, theme: "gitlab"
|
||||
|
|
|
@ -1,8 +1,11 @@
|
|||
- page_title "Audit Log"
|
||||
- header_title page_title, audit_log_profile_path
|
||||
|
||||
.alert.alert-help.prepend-top-default
|
||||
History of authentications
|
||||
|
||||
.prepend-top-default
|
||||
.row.prepend-top-default
|
||||
.col-lg-3.profile-settings-sidebar
|
||||
%h3.prepend-top-0
|
||||
= page_title
|
||||
%p
|
||||
This is a security log of important events involving your account.
|
||||
.col-lg-9
|
||||
= render 'event_table', events: @events
|
||||
|
|
Loading…
Reference in a new issue