gitlabhq/app/views/repositories/tags.html.haml
2012-07-22 13:08:24 +02:00

32 lines
1,018 B
Plaintext

= render "commits/head"
- unless @tags.empty?
%table.admin-table
%thead
%tr
%th Name
%th Last commit
%th Updated at
%th
- @tags.each do |tag|
- commit = Commit.new(tag.commit)
- commit = CommitDecorator.decorate(commit)
%tr
%td
%strong= link_to tag.name, project_commits_path(@project, :ref => tag.name), :class => ""
%td
= link_to project_commit_path(@project, commit.id) do
%code= commit.short_id
= image_tag gravatar_icon(commit.author_email), :class => "", :width => 16
= truncate(commit.title, :length => 40)
%td
%span.update-author.right
= time_ago_in_words(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