debian-mirror-gitlab/app/views/projects/tags/index.html.haml

50 lines
2 KiB
Text
Raw Normal View History

- @no_container = true
2017-08-17 22:00:37 +05:30
- @sort ||= sort_value_recently_updated
2018-03-17 18:26:18 +05:30
- page_title s_('TagsPage|Tags')
2018-11-20 20:47:30 +05:30
= content_for :meta_tags do
= auto_discovery_link_tag(:atom, project_tags_url(@project, rss_url_options), title: "#{@project.name} tags")
2017-09-10 17:25:29 +05:30
2017-08-17 22:00:37 +05:30
.flex-list{ class: container_class }
.top-area.adjust
.nav-text.row-main-content
2018-03-17 18:26:18 +05:30
= s_('TagsPage|Tags give the ability to mark specific points in history as being important')
2014-09-02 18:07:02 +05:30
2019-09-04 21:01:54 +05:30
.nav-controls
2016-09-29 09:46:39 +05:30
= form_tag(filter_tags_path, method: :get) do
2018-03-17 18:26:18 +05:30
= 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 }
2017-08-17 22:00:37 +05:30
.dropdown
2019-02-15 15:39:39 +05:30
%button.dropdown-menu-toggle{ type: 'button', data: { toggle: 'dropdown'} }
2016-09-29 09:46:39 +05:30
%span.light
2017-08-17 22:00:37 +05:30
= tags_sort_options_hash[@sort]
= icon('chevron-down')
2018-11-08 19:23:39 +05:30
%ul.dropdown-menu.dropdown-menu-right.dropdown-menu-selectable
2017-08-17 22:00:37 +05:30
%li.dropdown-header
2018-03-17 18:26:18 +05:30
= s_('TagsPage|Sort by')
2017-08-17 22:00:37 +05:30
- tags_sort_options_hash.each do |value, title|
%li
= link_to title, filter_tags_path(sort: value), class: ("is-active" if @sort == value)
2019-09-30 21:07:59 +05:30
- if can?(current_user, :admin_tag, @project)
2018-12-05 23:21:45 +05:30
= link_to new_project_tag_path(@project), class: 'btn btn-success new-tag-btn' do
2018-03-17 18:26:18 +05:30
= s_('TagsPage|New tag')
2019-02-15 15:39:39 +05:30
= link_to project_tags_path(@project, rss_url_options), title: _("Tags feed"), class: 'btn d-none d-sm-inline-block has-tooltip' do
2018-11-20 20:47:30 +05:30
= icon("rss")
2014-09-02 18:07:02 +05:30
2018-11-18 11:00:15 +05:30
= render_if_exists 'projects/commits/mirror_status'
.tags
2016-08-24 12:49:21 +05:30
- if @tags.any?
2017-08-17 22:00:37 +05:30
%ul.flex-list.content-list
2016-06-22 15:30:34 +05:30
= render partial: 'tag', collection: @tags
2014-09-02 18:07:02 +05:30
= paginate @tags, theme: 'gitlab'
- else
.nothing-here-block
2018-03-17 18:26:18 +05:30
= s_('TagsPage|Repository has no tags yet.')
2015-04-26 12:48:37 +05:30
%br
%small
2018-03-17 18:26:18 +05:30
= s_('TagsPage|Use git tag command to add a new one:')
%br
%span.monospace git tag -a v1.4 -m 'version 1.4'