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
Jérome Perrin
gitlab-ce
Commits
ce867db6
Commit
ce867db6
authored
Dec 12, 2016
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds CSS to match the mockups and makes table responsive
parent
f726dfba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
31 deletions
+46
-31
app/assets/stylesheets/pages/admin.scss
app/assets/stylesheets/pages/admin.scss
+14
-0
app/views/admin/deploy_keys/index.html.haml
app/views/admin/deploy_keys/index.html.haml
+32
-31
No files found.
app/assets/stylesheets/pages/admin.scss
View file @
ce867db6
...
...
@@ -166,3 +166,17 @@
min-width
:
120px
;
}
}
.deploy-keys-list
{
width
:
100%
;
overflow
:
auto
;
table
{
border
:
1px
solid
$table-border-color
;
}
}
.deploy-keys-title
{
padding-bottom
:
2px
;
line-height
:
2
;
}
app/views/admin/deploy_keys/index.html.haml
View file @
ce867db6
-
page_title
"Deploy Keys"
.panel.panel-default.prepend-top-default
.panel-heading
Public deploy keys (
#{
@deploy_keys
.
count
}
)
.controls
=
link_to
'New Deploy Key'
,
new_admin_deploy_key_path
,
class:
"btn btn-new btn-sm btn-inverted"
-
if
@deploy_keys
.
any?
.table-holder
%table
.table
%thead
.panel-heading
%h3
.page-title.deploy-keys-title
Public deploy keys (
#{
@deploy_keys
.
count
}
)
.pull-right
=
link_to
'New Deploy Key'
,
new_admin_deploy_key_path
,
class:
'btn btn-new btn-sm btn-inverted'
-
if
@deploy_keys
.
any?
.table-holder.deploy-keys-list
%table
.table
%thead
%tr
%th
.col-sm-2
Title
%th
.col-sm-4
Fingerprint
%th
.col-sm-2
Write access allowed
%th
.col-sm-2
Added at
%th
.col-sm-2
%tbody
-
@deploy_keys
.
each
do
|
deploy_key
|
%tr
%th
Title
%th
Fingerprint
%th
Write access allowed
%th
Added at
%th
%tbody
-
@deploy_keys
.
each
do
|
deploy_key
|
%tr
%td
%strong
=
deploy_key
.
title
%td
%code
.key-fingerprint
=
deploy_key
.
fingerprint
%td
-
if
deploy_key
.
can_push?
Yes
-
else
No
%td
%span
.cgray
added
#{
time_ago_with_tooltip
(
deploy_key
.
created_at
)
}
%td
=
link_to
'Remove'
,
admin_deploy_key_path
(
deploy_key
),
data:
{
confirm:
'Are you sure?'
},
method: :delete
,
class:
"btn btn-sm btn-remove delete-key pull-right"
%td
%strong
=
deploy_key
.
title
%td
%code
.key-fingerprint
=
deploy_key
.
fingerprint
%td
-
if
deploy_key
.
can_push?
Yes
-
else
No
%td
%span
.cgray
added
#{
time_ago_with_tooltip
(
deploy_key
.
created_at
)
}
%td
=
link_to
'Remove'
,
admin_deploy_key_path
(
deploy_key
),
data:
{
confirm:
'Are you sure?'
},
method: :delete
,
class:
'btn btn-sm btn-remove delete-key pull-right'
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