# frozen_string_literal: true module TagsHelper def tag_path(tag) "/tags/#{tag}" end def filter_tags_path(options = {}) project_tags_path(@project, @id, options) end def protected_tag?(project, tag) ProtectedTag.protected?(project, tag.name) end def tag_description_help_text text = s_('TagsPage|Optionally, add a message to the tag. Leaving this blank creates '\ 'a %{link_start}lightweight tag.%{link_end}') % { link_start: '', link_end: '' } text.html_safe end end