Commit 3df5fee4 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Restyle tags page

parent 0da5a4fa
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
.append-bottom-20 { margin-bottom:20px } .append-bottom-20 { margin-bottom:20px }
.prepend-top-10 { margin-top:10px } .prepend-top-10 { margin-top:10px }
.prepend-top-20 { margin-top:20px } .prepend-top-20 { margin-top:20px }
.prepend-left { margin-left:20px }
.padded { padding:20px } .padded { padding:20px }
.ipadded { padding:20px!important } .ipadded { padding:20px!important }
.lborder { border-left:1px solid #eee } .lborder { border-left:1px solid #eee }
......
= render "commits/head" = render "commits/head"
- unless @tags.empty? - unless @tags.empty?
%table %ul.bordered-list
%thead
%tr
%th Name
%th Last commit
%th
- @tags.each do |tag| - @tags.each do |tag|
- commit = Commit.new(Gitlab::Git::Commit.new(tag.commit)) - commit = Commit.new(Gitlab::Git::Commit.new(tag.commit))
%tr %li
%td %h5
%strong
= link_to project_commits_path(@project, tag.name), class: "" do = link_to project_commits_path(@project, tag.name), class: "" do
%i.icon-tag %i.icon-tag
= tag.name = tag.name
%small.light= truncate(tag.message || '', length: 70) %small
%td = truncate(tag.message || '', length: 70)
= image_tag gravatar_icon(commit.author_email), class: "avatar s16" .pull-right
= link_to project_commit_path(@project, commit.id), class: 'commit_short_id' do
= commit.short_id
%span.light %span.light
= time_ago_in_words(commit.committed_date) = time_ago_in_words(commit.committed_date)
ago ago
%td %div.prepend-left
= link_to commit.short_id(8), project_commit_path(@project, commit), class: "monospace"
–
= link_to_gfm truncate(commit.title, length: 70), project_commit_path(@project, commit.id), class: "cdark"
- if can? current_user, :download_code, @project - if can? current_user, :download_code, @project
.pull-right
= link_to archive_project_repository_path(@project, ref: tag.name) do = link_to archive_project_repository_path(@project, ref: tag.name) do
%i.icon-download-alt %i.icon-download-alt
Download Download
- else - else
%h3.nothing_here_message %h3.nothing_here_message
Repository has no tags yet. Repository has no tags yet.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment