2016-06-03 18:09:45 +00:00
|
|
|
- @no_container = true
|
2015-04-30 17:06:18 +00:00
|
|
|
- page_title "Tags"
|
2013-06-23 16:47:22 +00:00
|
|
|
= render "projects/commits/head"
|
2013-07-17 11:43:18 +00:00
|
|
|
|
2016-06-30 13:01:26 +00:00
|
|
|
%div{ class: container_class }
|
2016-06-08 15:23:45 +00:00
|
|
|
.top-area
|
|
|
|
.nav-text
|
|
|
|
Tags give the ability to mark specific points in history as being important
|
|
|
|
|
2016-07-06 08:01:32 +00:00
|
|
|
.nav-controls
|
|
|
|
- if can? current_user, :push_code, @project
|
2016-06-03 18:09:45 +00:00
|
|
|
= link_to new_namespace_project_tag_path(@project.namespace, @project), class: 'btn btn-create new-tag-btn' do
|
|
|
|
New tag
|
2016-07-06 08:01:32 +00:00
|
|
|
.dropdown.inline
|
|
|
|
%button.dropdown-toggle.btn{ type: 'button', data: { toggle: 'dropdown'} }
|
|
|
|
%span.light= @sort.humanize
|
|
|
|
%b.caret
|
|
|
|
%ul.dropdown-menu.dropdown-menu-align-right
|
|
|
|
%li
|
|
|
|
= link_to namespace_project_tags_path(sort: nil) do
|
|
|
|
Name
|
|
|
|
= link_to namespace_project_tags_path(sort: sort_value_recently_updated) do
|
|
|
|
= sort_title_recently_updated
|
|
|
|
= link_to namespace_project_tags_path(sort: sort_value_oldest_updated) do
|
|
|
|
= sort_title_oldest_updated
|
2013-07-17 11:43:18 +00:00
|
|
|
|
2016-06-03 18:09:45 +00:00
|
|
|
.tags
|
2016-06-30 13:01:26 +00:00
|
|
|
- if @tags.any?
|
2016-06-03 18:09:45 +00:00
|
|
|
%ul.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
|
|
|
|
Repository has no tags yet.
|
2014-08-17 14:21:31 +00:00
|
|
|
%br
|
2016-06-03 18:09:45 +00:00
|
|
|
%small
|
|
|
|
Use git tag command to add a new one:
|
|
|
|
%br
|
|
|
|
%span.monospace git tag -a v1.4 -m 'version 1.4'
|