2012-02-20 06:39:03 +00:00
|
|
|
= render "commits/head"
|
2011-12-31 11:12:10 +00:00
|
|
|
- unless @tags.empty?
|
2012-05-24 06:23:25 +00:00
|
|
|
%table.admin-table
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th Name
|
|
|
|
%th Last commit
|
|
|
|
%th Updated at
|
|
|
|
%th
|
2012-02-11 21:22:33 +00:00
|
|
|
- @tags.each do |tag|
|
2012-05-24 06:23:25 +00:00
|
|
|
- commit = Commit.new(tag.commit)
|
2012-02-18 13:59:01 +00:00
|
|
|
%tr
|
|
|
|
%td
|
2012-02-20 06:39:03 +00:00
|
|
|
%strong= link_to tag.name, project_commits_path(@project, :ref => tag.name), :class => ""
|
|
|
|
%td
|
2012-05-24 06:23:25 +00:00
|
|
|
= link_to project_commit_path(@project, commit.id) do
|
|
|
|
%code= commit.id.to_s[0..10]
|
|
|
|
= image_tag gravatar_icon(commit.author_email), :class => "", :width => 16
|
|
|
|
= truncate(commit.safe_message, :length => 40)
|
2012-02-20 06:39:03 +00:00
|
|
|
%td
|
2012-02-18 13:59:01 +00:00
|
|
|
%span.update-author.right
|
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-02-20 06:39:03 +00:00
|
|
|
= link_to "Download", archive_project_repository_path(@project, :ref => tag.name), :class => "visible_link download_repo_link"
|
2012-02-11 21:22:33 +00:00
|
|
|
|
2011-12-31 11:12:10 +00:00
|
|
|
- else
|
|
|
|
%h3 No tags
|