gitlabhq/app/views/repositories/tags.html.haml
2012-10-26 18:37:12 +03:00

34 lines
1,003 B
Plaintext

= render "commits/head"
- unless @tags.empty?
%table
%thead
%tr
%th Name
%th Last commit
%th
- @tags.each do |tag|
- commit = Commit.new(tag.commit)
- commit = CommitDecorator.decorate(commit)
%tr
%td
%strong
= link_to project_commits_path(@project, tag.name), class: "" do
%i.icon-tag
= tag.name
%small.light= truncate(tag.message, length: 70)
%td
= image_tag gravatar_icon(commit.author_email), class: "avatar s16"
= link_to project_commit_path(@project, commit.id), class: 'commit_short_id' do
= commit.short_id
%span.light
= time_ago_in_words(commit.committed_date)
ago
%td
- if can? current_user, :download_code, @project
= link_to archive_project_repository_path(@project, ref: tag.name) do
%i.icon-download
Download
- else
%h3 No tags