gitlab-org--gitlab-foss/app/views/projects/tags/index.html.haml

49 lines
1.9 KiB
Plaintext
Raw Normal View History

2017-05-04 07:54:42 +00:00
- @sort ||= sort_value_recently_updated
- page_title s_('TagsPage|Tags')
2018-09-03 10:54:06 +00:00
= content_for :meta_tags do
= auto_discovery_link_tag(:atom, project_tags_url(@project, rss_url_options), title: "#{@project.name} tags")
2013-07-17 11:43:18 +00:00
.flex-list
2017-02-09 18:38:33 +00:00
.top-area.adjust
.nav-text.row-main-content
2017-11-02 22:30:06 +00:00
= s_('TagsPage|Tags give the ability to mark specific points in history as being important')
.nav-controls
2016-08-31 10:39:35 +00:00
= form_tag(filter_tags_path, method: :get) do
2017-11-02 22:30:06 +00:00
= search_field_tag :search, params[:search], { placeholder: s_('TagsPage|Filter by tag name'), id: 'tag-search', class: 'form-control search-text-input input-short', spellcheck: false }
.dropdown
%button.dropdown-menu-toggle{ type: 'button', data: { toggle: 'dropdown'} }
2016-08-31 11:35:23 +00:00
%span.light
= tags_sort_options_hash[@sort]
= icon('chevron-down')
2018-04-17 17:18:41 +00:00
%ul.dropdown-menu.dropdown-menu-right.dropdown-menu-selectable
%li.dropdown-header
2017-11-02 22:30:06 +00:00
= s_('TagsPage|Sort by')
- tags_sort_options_hash.each do |value, title|
%li
= link_to title, filter_tags_path(sort: value), class: ("is-active" if @sort == value)
- if can?(current_user, :admin_tag, @project)
= link_to new_project_tag_path(@project), class: 'btn btn-success new-tag-btn' do
2017-11-02 22:30:06 +00:00
= s_('TagsPage|New tag')
= link_to project_tags_path(@project, rss_url_options), title: _("Tags feed"), class: 'btn d-none d-sm-inline-block has-tooltip' do
2018-09-03 10:54:06 +00:00
= icon("rss")
2013-07-17 11:43:18 +00:00
= render_if_exists 'projects/commits/mirror_status'
2016-06-03 18:09:45 +00:00
.tags
2016-06-30 13:01:26 +00:00
- if @tags.any?
%ul.flex-list.content-list
2016-06-16 17:33:29 +00:00
= render partial: 'tag', collection: @tags
2013-04-05 18:03:39 +00:00
2016-06-03 18:09:45 +00:00
= paginate @tags, theme: 'gitlab'
2012-02-11 21:22:33 +00:00
2016-06-03 18:09:45 +00:00
- else
.nothing-here-block
2017-11-02 22:30:06 +00:00
= s_('TagsPage|Repository has no tags yet.')
2014-08-17 14:21:31 +00:00
%br
2016-06-03 18:09:45 +00:00
%small
2017-11-02 22:30:06 +00:00
= s_('TagsPage|Use git tag command to add a new one:')
2016-06-03 18:09:45 +00:00
%br
%span.monospace git tag -a v1.4 -m 'version 1.4'