Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/profiles/_event_table.html.haml')
-rw-r--r--app/views/profiles/_event_table.html.haml11
1 files changed, 6 insertions, 5 deletions
diff --git a/app/views/profiles/_event_table.html.haml b/app/views/profiles/_event_table.html.haml
index f74902a3c3b..67c649a9fce 100644
--- a/app/views/profiles/_event_table.html.haml
+++ b/app/views/profiles/_event_table.html.haml
@@ -3,10 +3,11 @@
%ul.content-list
- events.each do |event|
- %li
- %span.description
- = audit_icon(event.details[:with], css_class: 'gl-mr-2')
- = _('Signed in with %{authentication} authentication') % { authentication: event.details[:with]}
- %span.float-right= time_ago_with_tooltip(event.created_at)
+ - if event.success?
+ %li
+ %span.description
+ = audit_icon('key', css_class: 'gl-mr-2')
+ = _('Signed in with %{authentication} authentication') % { authentication: event.provider }
+ %span.float-right= time_ago_with_tooltip(event.created_at)
= paginate events, theme: "gitlab"