gitlabhq/app/views/repositories/tags.html.haml
2012-04-11 23:32:45 +03:00

24 lines
899 B
Plaintext

= render "commits/head"
- unless @tags.empty?
%table.table-striped.borders
- @tags.each do |tag|
%tr
%td
%strong= link_to tag.name, project_commits_path(@project, :ref => tag.name), :class => ""
%td
= 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
%span.update-author.right
= time_ago_in_words(tag.commit.committed_date)
ago
 
%td
- if can? current_user, :download_code, @project
= link_to "Download", archive_project_repository_path(@project, :ref => tag.name), :class => "visible_link download_repo_link"
- else
%h3 No tags