summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorKamil TrzciƄski <ayufan@ayufan.eu>2017-04-11 12:05:30 +0000
committerFelipe Artur <felipefac@gmail.com>2017-04-11 19:34:18 -0300
commit7985026bc47c8a7984dd91006618ebfe4f3330c2 (patch)
treec54c738a91d179089d3a64030e2b18aa7a6af4d9 /app/models
parent1e10c1b29b8db1791517b0fd7241a87afb818f0d (diff)
downloadgitlab-ce-7985026bc47c8a7984dd91006618ebfe4f3330c2.tar.gz
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 'app/models')
-rw-r--r--app/models/container_repository.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/container_repository.rb b/app/models/container_repository.rb
index 9682df3a586..82f4182d59a 100644
--- a/app/models/container_repository.rb
+++ b/app/models/container_repository.rb
@@ -23,6 +23,10 @@ class ContainerRepository < ActiveRecord::Base
@path ||= [project.full_path, name].select(&:present?).join('/')
end
+ def location
+ File.join(registry.path, path)
+ end
+
def tag(tag)
ContainerRegistry::Tag.new(self, tag)
end