Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
f0085d03
Commit
f0085d03
authored
Dec 29, 2014
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reuse show page for user keys.
parent
492f3a47
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
19 deletions
+24
-19
app/views/admin/users/key.html.haml
app/views/admin/users/key.html.haml
+4
-0
app/views/profiles/keys/_key_details.html.haml
app/views/profiles/keys/_key_details.html.haml
+19
-0
app/views/profiles/keys/show.html.haml
app/views/profiles/keys/show.html.haml
+1
-19
No files found.
app/views/admin/users/key.html.haml
0 → 100644
View file @
f0085d03
=
render
"profiles/keys/key_details"
.pull-right
=
link_to
'Remove'
,
remove_user_key_admin_user_path
(
@user
,
@key
),
data:
{
confirm:
'Are you sure?'
},
method: :delete
,
class:
"btn btn-remove delete-key"
app/views/profiles/keys/_key_details.html.haml
0 → 100644
View file @
f0085d03
.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
app/views/profiles/keys/show.html.haml
View file @
f0085d03
.row
=
render
"key_details"
.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
.pull-right
.pull-right
=
link_to
'Remove'
,
profile_key_path
(
@key
),
data:
{
confirm:
'Are you sure?'
},
method: :delete
,
class:
"btn btn-remove delete-key"
=
link_to
'Remove'
,
profile_key_path
(
@key
),
data:
{
confirm:
'Are you sure?'
},
method: :delete
,
class:
"btn btn-remove delete-key"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment