diff options
author | James Edwards-Jones <jedwardsjones@gitlab.com> | 2017-03-31 19:30:33 +0100 |
---|---|---|
committer | James Edwards-Jones <jedwardsjones@gitlab.com> | 2017-03-31 19:37:39 +0100 |
commit | 553cf9ea54ccb0736a8b44e2f3d047d0860aa71e (patch) | |
tree | 7f9927d2de82a81110d60ebc35eb6180f89b1635 /app/helpers | |
parent | ab46353fd9c0c76c137bf828788ecbc34d0fe99a (diff) | |
download | gitlab-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.rb | 4 |
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 |