2016-06-16 23:09:34 +05:30
|
|
|
- @no_container = true
|
2015-09-11 14:41:01 +05:30
|
|
|
- page_title "Tags"
|
2014-09-02 18:07:02 +05:30
|
|
|
= render "projects/commits/head"
|
|
|
|
|
2016-08-24 12:49:21 +05:30
|
|
|
%div{ class: container_class }
|
2016-06-16 23:09:34 +05:30
|
|
|
.top-area
|
|
|
|
.nav-text
|
|
|
|
Tags give the ability to mark specific points in history as being important
|
2014-09-02 18:07:02 +05:30
|
|
|
|
2016-08-24 12:49:21 +05:30
|
|
|
.nav-controls
|
2016-09-29 09:46:39 +05:30
|
|
|
= form_tag(filter_tags_path, method: :get) do
|
|
|
|
= search_field_tag :search, params[:search], { placeholder: 'Filter by tag name', id: 'tag-search', class: 'form-control search-text-input input-short', spellcheck: false }
|
2016-08-24 12:49:21 +05:30
|
|
|
.dropdown.inline
|
|
|
|
%button.dropdown-toggle.btn{ type: 'button', data: { toggle: 'dropdown'} }
|
2016-09-29 09:46:39 +05:30
|
|
|
%span.light
|
|
|
|
= @sort.humanize
|
2016-11-03 12:29:30 +05:30
|
|
|
= icon('caret-down')
|
2016-08-24 12:49:21 +05:30
|
|
|
%ul.dropdown-menu.dropdown-menu-align-right
|
|
|
|
%li
|
2016-09-29 09:46:39 +05:30
|
|
|
= link_to filter_tags_path(sort: nil) do
|
2016-08-24 12:49:21 +05:30
|
|
|
Name
|
2016-09-29 09:46:39 +05:30
|
|
|
= link_to filter_tags_path(sort: sort_value_recently_updated) do
|
2016-08-24 12:49:21 +05:30
|
|
|
= sort_title_recently_updated
|
2016-09-29 09:46:39 +05:30
|
|
|
= link_to filter_tags_path(sort: sort_value_oldest_updated) do
|
2016-08-24 12:49:21 +05:30
|
|
|
= sort_title_oldest_updated
|
2016-09-29 09:46:39 +05:30
|
|
|
- if can?(current_user, :push_code, @project)
|
|
|
|
= link_to new_namespace_project_tag_path(@project.namespace, @project), class: 'btn btn-create new-tag-btn' do
|
|
|
|
New tag
|
2014-09-02 18:07:02 +05:30
|
|
|
|
2016-06-16 23:09:34 +05:30
|
|
|
.tags
|
2016-08-24 12:49:21 +05:30
|
|
|
- if @tags.any?
|
2016-06-16 23:09:34 +05:30
|
|
|
%ul.content-list
|
2016-06-22 15:30:34 +05:30
|
|
|
= render partial: 'tag', collection: @tags
|
2014-09-02 18:07:02 +05:30
|
|
|
|
2016-06-16 23:09:34 +05:30
|
|
|
= paginate @tags, theme: 'gitlab'
|
|
|
|
|
|
|
|
- else
|
|
|
|
.nothing-here-block
|
|
|
|
Repository has no tags yet.
|
2015-04-26 12:48:37 +05:30
|
|
|
%br
|
2016-06-16 23:09:34 +05:30
|
|
|
%small
|
|
|
|
Use git tag command to add a new one:
|
|
|
|
%br
|
|
|
|
%span.monospace git tag -a v1.4 -m 'version 1.4'
|