Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2017-04-11 15:05:30 +0300
committerKamil Trzciński <ayufan@ayufan.eu>2017-04-11 15:05:30 +0300
commitcf1beb003bc538fded81c26bb360b1ec9525937e (patch)
treeb45e21cb7ea6a4c3198b44d214548273ca9e9f4e /lib
parent7df8118a8279d3ed28cad21bbb27e7336dbbc8f2 (diff)
parentbb294b91d7a74e00ea9e93011fdad47d88c7cfdf (diff)
Merge branch 'fix/gb/improve-container-registry-clipboard-links' into 'master'
Fix container repository/tag location text copied into the clipboard Closes #30695 See merge request !10587
Diffstat (limited to 'lib')
-rw-r--r--lib/container_registry/tag.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/container_registry/tag.rb b/lib/container_registry/tag.rb
index d00e6191e7e..728deea224f 100644
--- a/lib/container_registry/tag.rb
+++ b/lib/container_registry/tag.rb
@@ -29,6 +29,10 @@ module ContainerRegistry
"#{repository.path}:#{name}"
end
+ def location
+ "#{repository.location}:#{name}"
+ end
+
def [](key)
return unless manifest