2012-02-20 06:39:03 +00:00
|
|
|
= render "commits/head"
|
2011-12-31 11:12:10 +00:00
|
|
|
- unless @tags.empty?
|
2012-09-03 18:53:16 +00:00
|
|
|
%table
|
2012-05-24 06:23:25 +00:00
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th Name
|
|
|
|
%th Last commit
|
|
|
|
%th
|
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))
|
2012-02-18 13:59:01 +00:00
|
|
|
%tr
|
|
|
|
%td
|
2012-10-26 15:37:12 +00:00
|
|
|
%strong
|
|
|
|
= link_to project_commits_path(@project, tag.name), class: "" do
|
|
|
|
%i.icon-tag
|
|
|
|
= tag.name
|
2012-10-26 18:52:26 +00:00
|
|
|
%small.light= truncate(tag.message || '', length: 70)
|
2012-02-20 06:39:03 +00:00
|
|
|
%td
|
2012-10-26 15:37:12 +00:00
|
|
|
= image_tag gravatar_icon(commit.author_email), class: "avatar s16"
|
|
|
|
= link_to project_commit_path(@project, commit.id), class: 'commit_short_id' do
|
|
|
|
= commit.short_id
|
|
|
|
%span.light
|
2012-05-24 06:23:25 +00:00
|
|
|
= time_ago_in_words(commit.committed_date)
|
2012-02-18 13:59:01 +00:00
|
|
|
ago
|
|
|
|
%td
|
2012-02-11 21:22:33 +00:00
|
|
|
- if can? current_user, :download_code, @project
|
2012-10-26 15:37:12 +00:00
|
|
|
= link_to archive_project_repository_path(@project, ref: tag.name) do
|
2013-01-08 05:14:05 +00:00
|
|
|
%i.icon-download-alt
|
2012-10-26 15:37:12 +00:00
|
|
|
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'
|