summaryrefslogtreecommitdiff
path: root/app/views/profiles/keys/_key.html.haml
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2017-01-09 10:30:49 +0000
committerSean McGivern <sean@mcgivern.me.uk>2017-01-09 10:30:49 +0000
commitcb4964d23b49f775ad3c8aa562942911b6b1c262 (patch)
treecb8af8e74102d709c40e1119b000e0f8ae1419b9 /app/views/profiles/keys/_key.html.haml
parentfb5ded7d8ef32177e51af047e4dafbc3ed9c6abb (diff)
parentb6df93a51f90c7ed29ce6667c6b1a8debf02506e (diff)
downloadgitlab-ce-cb4964d23b49f775ad3c8aa562942911b6b1c262.tar.gz
Merge branch 'track_last_used_date_of_ssh_keys' into 'master'
Record and show last used date of SSH Keys See merge request !8113
Diffstat (limited to 'app/views/profiles/keys/_key.html.haml')
-rw-r--r--app/views/profiles/keys/_key.html.haml3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/profiles/keys/_key.html.haml b/app/views/profiles/keys/_key.html.haml
index 3276db6692c..d2a60ac2867 100644
--- a/app/views/profiles/keys/_key.html.haml
+++ b/app/views/profiles/keys/_key.html.haml
@@ -6,6 +6,9 @@
= key.title
.description
= key.fingerprint
+ .last-used-at
+ last used:
+ = key.last_used_at ? time_ago_with_tooltip(key.last_used_at) : 'n/a'
.pull-right
%span.key-created-at
created #{time_ago_with_tooltip(key.created_at)}