gitlab-org--gitlab-foss/app/views/repositories/tags.html.haml

37 lines
1.2 KiB
Plaintext
Raw Normal View History

= render "commits/head"
2011-12-31 11:12:10 +00:00
- unless @tags.empty?
2013-04-05 18:03:39 +00:00
%ul.bordered-list
2012-02-11 21:22:33 +00:00
- @tags.each do |tag|
- commit = Commit.new(Gitlab::Git::Commit.new(tag.commit))
2013-04-05 18:03:39 +00:00
%li
%h5
= link_to project_commits_path(@project, tag.name), class: "" do
%i.icon-tag
= tag.name
%small
= truncate(tag.message || '', length: 70)
.pull-right
%span.light
= time_ago_in_words(commit.committed_date)
ago
2013-04-06 12:10:24 +00:00
%div.prepend-left-20
2013-04-05 18:03:39 +00:00
= link_to commit.short_id(8), project_commit_path(@project, commit), class: "monospace"
–
= link_to_gfm truncate(commit.title, length: 70), project_commit_path(@project, commit.id), class: "cdark"
2012-02-11 21:22:33 +00:00
- if can? current_user, :download_code, @project
2013-04-05 18:03:39 +00:00
.pull-right
= link_to archive_project_repository_path(@project, ref: tag.name) do
%i.icon-download-alt
Download
2012-02-11 21:22:33 +00:00
- else
2013-01-04 21:35:31 +00:00
%h3.nothing_here_message
Repository has no tags yet.
%br
%small
Use git tag command to add a new one:
%br
%span.monospace git tag -a v1.4 -m 'version 1.4'