summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorJames Edwards-Jones <jedwardsjones@gitlab.com>2017-03-31 19:30:33 +0100
committerJames Edwards-Jones <jedwardsjones@gitlab.com>2017-03-31 19:37:39 +0100
commit553cf9ea54ccb0736a8b44e2f3d047d0860aa71e (patch)
tree7f9927d2de82a81110d60ebc35eb6180f89b1635 /app/helpers
parentab46353fd9c0c76c137bf828788ecbc34d0fe99a (diff)
downloadgitlab-ce-553cf9ea54ccb0736a8b44e2f3d047d0860aa71e.tar.gz
Added ‘protected’ label and disabled delete button for tags index/show
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/tags_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/tags_helper.rb b/app/helpers/tags_helper.rb
index c0ec1634cdb..6672e3da348 100644
--- a/app/helpers/tags_helper.rb
+++ b/app/helpers/tags_helper.rb
@@ -21,4 +21,8 @@ module TagsHelper
html.html_safe
end
+
+ def protected_tag?(project, tag)
+ project.protected_tag?(tag.name)
+ end
end