gitlabhq/app/views/repositories/tags.html.haml

39 lines
1.1 KiB
Plaintext
Raw Normal View History

= render "commits/head"
2011-12-31 12:12:10 +01:00
- unless @tags.empty?
2012-09-03 20:53:16 +02:00
%table
2012-05-24 08:23:25 +02:00
%thead
%tr
%th Name
%th Last commit
%th
2012-02-11 22:22:33 +01:00
- @tags.each do |tag|
- commit = Commit.new(Gitlab::Git::Commit.new(tag.commit))
2012-02-18 14:59:01 +01:00
%tr
%td
%strong
= link_to project_commits_path(@project, tag.name), class: "" do
%i.icon-tag
= tag.name
%small.light= truncate(tag.message || '', length: 70)
%td
= 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 08:23:25 +02:00
= time_ago_in_words(commit.committed_date)
2012-02-18 14:59:01 +01:00
ago
%td
2012-02-11 22:22:33 +01:00
- if can? current_user, :download_code, @project
= link_to archive_project_repository_path(@project, ref: tag.name) do
%i.icon-download-alt
Download
2012-02-11 22:22:33 +01:00
- else
2013-01-04 22:35:31 +01: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'