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
Léo-Paul Géneau
gitlab-ce
Commits
008441c4
Commit
008441c4
authored
Apr 04, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve container registry repository view partials
parent
7e46d0a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
15 deletions
+10
-15
app/views/projects/registry/repositories/_image.html.haml
app/views/projects/registry/repositories/_image.html.haml
+10
-15
No files found.
app/views/projects/registry/repositories/_image.html.haml
View file @
008441c4
-
expanded
=
false
.container-image.js-toggle-container
.container-image-head
=
link_to
"#"
,
class:
"js-toggle-button"
do
-
if
expanded
=
icon
(
"chevron-up"
)
-
else
=
icon
(
"chevron-down"
)
=
icon
(
"chevron-down"
)
=
escape_once
(
image
.
path
)
=
clipboard_button
(
clipboard_text:
"docker pull
#{
image
.
path
}
"
)
.controls.hidden-xs.pull-right
=
link_to
namespace_project_container_registry_path
(
@project
.
namespace
,
@project
,
image
),
class:
'btn btn-remove has-tooltip'
,
title:
'Remove repository'
,
data:
{
confirm:
'Are you sure?'
},
method: :delete
do
=
icon
(
"trash cred"
)
.container-image-tags.js-toggle-content
{
class:
(
"hide"
unless
expanded
)
}
-
if
image
.
tags
.
blank?
%li
.nothing-here-block
No tags in Container Registry for this container image.
=
icon
(
'trash cred'
)
-
else
.container-image-tags.js-toggle-content
{
class:
'hide'
}
-
if
image
.
has_tags?
.table-holder
%table
.table.tags
%thead
...
...
@@ -34,5 +26,8 @@
%th
Created
-
if
can?
(
current_user
,
:update_container_image
,
@project
)
%th
=
render
partial:
'tag'
,
collection:
image
.
tags
-
else
%li
.nothing-here-block
No tags in Container Registry for this container image.
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