summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-06-21 13:08:10 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2016-06-21 13:08:10 +0200
commit70606bf0c13212eb4dabf4314b783830dd01dbfc (patch)
tree92f305e93771936174855da681fc786903858634 /app/views
parent44b8b77e02423ce97f9abe80e0335f4f4c453c83 (diff)
downloadgitlab-ce-70606bf0c13212eb4dabf4314b783830dd01dbfc.tar.gz
Show proper image ID on registry page
Diffstat (limited to 'app/views')
-rw-r--r--app/views/projects/container_registry/_tag.html.haml6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/projects/container_registry/_tag.html.haml b/app/views/projects/container_registry/_tag.html.haml
index f35faa6afb5..10822b6184c 100644
--- a/app/views/projects/container_registry/_tag.html.haml
+++ b/app/views/projects/container_registry/_tag.html.haml
@@ -3,9 +3,9 @@
= escape_once(tag.name)
= clipboard_button(clipboard_text: "docker pull #{tag.path}")
%td
- - if layer = tag.layers.first
- %span.has-tooltip{ title: "#{layer.revision}" }
- = layer.short_revision
+ - if tag.revision
+ %span.has-tooltip{ title: "#{tag.revision}" }
+ = tag.short_revision
- else
\-
%td