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

24 lines
899 B
Plaintext
Raw Normal View History

= render "commits/head"
2011-12-31 12:12:10 +01:00
- unless @tags.empty?
2012-04-10 07:51:08 +02:00
%table.table-striped.borders
2012-02-11 22:22:33 +01:00
- @tags.each do |tag|
2012-02-18 14:59:01 +01:00
%tr
%td
%strong= link_to tag.name, project_commits_path(@project, :ref => tag.name), :class => ""
%td
2012-04-11 22:32:45 +02:00
= link_to project_commit_path(@project, tag.commit.id) do
%code= tag.commit.id.to_s[0..10]
= image_tag gravatar_icon(Commit.new(tag.commit).author_email), :class => "", :width => 16
= truncate(Commit.new(tag.commit).safe_message, :length => 40)
%td
2012-02-18 14:59:01 +01:00
%span.update-author.right
= time_ago_in_words(tag.commit.committed_date)
ago
 
%td
2012-02-11 22:22:33 +01:00
- if can? current_user, :download_code, @project
= link_to "Download", archive_project_repository_path(@project, :ref => tag.name), :class => "visible_link download_repo_link"
2012-02-11 22:22:33 +01:00
2011-12-31 12:12:10 +01:00
- else
%h3 No tags