2012-02-20 06:39:03 +00:00
|
|
|
= 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|
|
2013-03-31 20:47:26 +00:00
|
|
|
- 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
|
|
|
|
%div.prepend-left
|
|
|
|
= 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
|
|
|
|
2012-06-03 22:37:27 +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'
|