summaryrefslogtreecommitdiff
path: root/app/helpers/tags_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/tags_helper.rb')
-rw-r--r--app/helpers/tags_helper.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/helpers/tags_helper.rb b/app/helpers/tags_helper.rb
index c0ec1634cdb..d000d6b1c0a 100644
--- a/app/helpers/tags_helper.rb
+++ b/app/helpers/tags_helper.rb
@@ -10,7 +10,7 @@ module TagsHelper
}
options = exist_opts.merge(options)
- namespace_project_tags_path(@project.namespace, @project, @id, options)
+ project_tags_path(@project, @id, options)
end
def tag_list(project)
@@ -21,4 +21,8 @@ module TagsHelper
html.html_safe
end
+
+ def protected_tag?(project, tag)
+ ProtectedTag.protected?(project, tag.name)
+ end
end