2017-05-04 07:54:42 +00:00
|
|
|
- @sort ||= sort_value_recently_updated
|
2017-11-21 11:00:07 +00:00
|
|
|
- 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
|
|
|
|
2019-09-03 09:03:35 +00:00
|
|
|
.flex-list
|
2017-02-09 18:38:33 +00:00
|
|
|
.top-area.adjust
|
2016-12-21 23:18:47 +00:00
|
|
|
.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')
|
2016-06-08 15:23:45 +00:00
|
|
|
|
2019-06-06 14:44:13 +00:00
|
|
|
.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 }
|
2016-11-25 07:29:26 +00:00
|
|
|
|
2016-12-20 22:58:04 +00:00
|
|
|
.dropdown
|
2018-12-03 15:23:05 +00:00
|
|
|
%button.dropdown-menu-toggle{ type: 'button', data: { toggle: 'dropdown'} }
|
2016-08-31 11:35:23 +00:00
|
|
|
%span.light
|
2017-05-03 08:06:28 +00:00
|
|
|
= tags_sort_options_hash[@sort]
|
2016-11-22 21:28:07 +00:00
|
|
|
= icon('chevron-down')
|
2018-04-17 17:18:41 +00:00
|
|
|
%ul.dropdown-menu.dropdown-menu-right.dropdown-menu-selectable
|
2017-05-03 08:06:28 +00:00
|
|
|
%li.dropdown-header
|
2017-11-02 22:30:06 +00:00
|
|
|
= s_('TagsPage|Sort by')
|
2017-05-03 08:06:28 +00:00
|
|
|
- tags_sort_options_hash.each do |value, title|
|
|
|
|
%li
|
|
|
|
= link_to title, filter_tags_path(sort: value), class: ("is-active" if @sort == value)
|
2019-06-19 07:08:56 +00:00
|
|
|
- if can?(current_user, :admin_tag, @project)
|
2018-09-18 09:58:22 +00:00
|
|
|
= 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')
|
2018-11-23 02:11:13 +00:00
|
|
|
= 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
|
|
|
|
2018-06-14 16:06:26 +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?
|
2016-12-20 22:58:04 +00:00
|
|
|
%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'
|