diff options
author | Kamil TrzciĆski <ayufan@ayufan.eu> | 2017-04-11 12:05:30 +0000 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2017-04-11 19:34:18 -0300 |
commit | 7985026bc47c8a7984dd91006618ebfe4f3330c2 (patch) | |
tree | c54c738a91d179089d3a64030e2b18aa7a6af4d9 /app/models | |
parent | 1e10c1b29b8db1791517b0fd7241a87afb818f0d (diff) | |
download | gitlab-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.rb | 4 |
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 |