diff options
author | Marin Jankovski <maxlazio@gmail.com> | 2014-12-29 19:09:39 +0300 |
---|---|---|
committer | Marin Jankovski <maxlazio@gmail.com> | 2014-12-29 19:09:39 +0300 |
commit | f0085d034b33adc78753e2952a5e04842ca979e3 (patch) | |
tree | b8149ce25e6396f159f7a8e0cae11ba787441cd1 /app/views/profiles | |
parent | 492f3a477940daf425aabc9dd4a33e7a1e9092c1 (diff) |
Reuse show page for user keys.
Diffstat (limited to 'app/views/profiles')
-rw-r--r-- | app/views/profiles/keys/_key_details.html.haml | 19 | ||||
-rw-r--r-- | app/views/profiles/keys/show.html.haml | 20 |
2 files changed, 20 insertions, 19 deletions
diff --git a/app/views/profiles/keys/_key_details.html.haml b/app/views/profiles/keys/_key_details.html.haml new file mode 100644 index 00000000000..b7e0029a8ac --- /dev/null +++ b/app/views/profiles/keys/_key_details.html.haml @@ -0,0 +1,19 @@ +.row + .col-md-4 + .panel.panel-default + .panel-heading + SSH Key + %ul.well-list + %li + %span.light Title: + %strong= @key.title + %li + %span.light Created on: + %strong= @key.created_at.stamp("Aug 21, 2011") + + .col-md-8 + %p + %span.light Fingerprint: + %strong= @key.fingerprint + %pre.well-pre + = @key.key diff --git a/app/views/profiles/keys/show.html.haml b/app/views/profiles/keys/show.html.haml index c4fc1bb269c..470b984d16c 100644 --- a/app/views/profiles/keys/show.html.haml +++ b/app/views/profiles/keys/show.html.haml @@ -1,22 +1,4 @@ -.row - .col-md-4 - .panel.panel-default - .panel-heading - SSH Key - %ul.well-list - %li - %span.light Title: - %strong= @key.title - %li - %span.light Created on: - %strong= @key.created_at.stamp("Aug 21, 2011") - - .col-md-8 - %p - %span.light Fingerprint: - %strong= @key.fingerprint - %pre.well-pre - = @key.key += render "key_details" .pull-right = link_to 'Remove', profile_key_path(@key), data: {confirm: 'Are you sure?'}, method: :delete, class: "btn btn-remove delete-key" |