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