summaryrefslogtreecommitdiff
path: root/app/views/profiles/keys/_key.html.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-24 18:24:14 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-24 18:24:14 +0300
commit3e09e6f7b8032859a82266282dfd35715b3b3727 (patch)
tree7f882004565743b11cb4c734cbdfb9417fa1a9ab /app/views/profiles/keys/_key.html.haml
parente55e23bbda6f6a95982109bc46e48a5550e4c181 (diff)
downloadgitlab-ce-3e09e6f7b8032859a82266282dfd35715b3b3727.tar.gz
Move Profile related controllers under Profiles:: module
Diffstat (limited to 'app/views/profiles/keys/_key.html.haml')
-rw-r--r--app/views/profiles/keys/_key.html.haml12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/views/profiles/keys/_key.html.haml b/app/views/profiles/keys/_key.html.haml
new file mode 100644
index 00000000000..a71ad6295cd
--- /dev/null
+++ b/app/views/profiles/keys/_key.html.haml
@@ -0,0 +1,12 @@
+%tr
+ %td
+ = link_to profile_key_path(key) do
+ %strong= key.title
+ %td
+ %span.cgray
+ Added
+ = time_ago_in_words(key.created_at)
+ ago
+ %td
+ = link_to 'Remove', profile_key_path(key), confirm: 'Are you sure?', method: :delete, class: "btn btn-small btn-remove delete-key pull-right"
+