Commit 3df5fee4ff20ef9cf4834ea15b0a2a0df5f5437b
1 parent
0da5a4fa
Exists in
master
and in
4 other branches
Restyle tags page
Showing
2 changed files
with
23 additions
and
24 deletions
Show diff stats
app/assets/stylesheets/gitlab_bootstrap/common.scss
| ... | ... | @@ -14,6 +14,7 @@ |
| 14 | 14 | .append-bottom-20 { margin-bottom:20px } |
| 15 | 15 | .prepend-top-10 { margin-top:10px } |
| 16 | 16 | .prepend-top-20 { margin-top:20px } |
| 17 | +.prepend-left { margin-left:20px } | |
| 17 | 18 | .padded { padding:20px } |
| 18 | 19 | .ipadded { padding:20px!important } |
| 19 | 20 | .lborder { border-left:1px solid #eee } | ... | ... |
app/views/repositories/tags.html.haml
| 1 | 1 | = render "commits/head" |
| 2 | 2 | - unless @tags.empty? |
| 3 | - %table | |
| 4 | - %thead | |
| 5 | - %tr | |
| 6 | - %th Name | |
| 7 | - %th Last commit | |
| 8 | - %th | |
| 3 | + %ul.bordered-list | |
| 9 | 4 | - @tags.each do |tag| |
| 10 | 5 | - commit = Commit.new(Gitlab::Git::Commit.new(tag.commit)) |
| 11 | - %tr | |
| 12 | - %td | |
| 13 | - %strong | |
| 14 | - = link_to project_commits_path(@project, tag.name), class: "" do | |
| 15 | - %i.icon-tag | |
| 16 | - = tag.name | |
| 17 | - %small.light= truncate(tag.message || '', length: 70) | |
| 18 | - %td | |
| 19 | - = image_tag gravatar_icon(commit.author_email), class: "avatar s16" | |
| 20 | - = link_to project_commit_path(@project, commit.id), class: 'commit_short_id' do | |
| 21 | - = commit.short_id | |
| 22 | - %span.light | |
| 23 | - = time_ago_in_words(commit.committed_date) | |
| 24 | - ago | |
| 25 | - %td | |
| 6 | + %li | |
| 7 | + %h5 | |
| 8 | + = link_to project_commits_path(@project, tag.name), class: "" do | |
| 9 | + %i.icon-tag | |
| 10 | + = tag.name | |
| 11 | + %small | |
| 12 | + = truncate(tag.message || '', length: 70) | |
| 13 | + .pull-right | |
| 14 | + %span.light | |
| 15 | + = time_ago_in_words(commit.committed_date) | |
| 16 | + ago | |
| 17 | + %div.prepend-left | |
| 18 | + = link_to commit.short_id(8), project_commit_path(@project, commit), class: "monospace" | |
| 19 | + – | |
| 20 | + = link_to_gfm truncate(commit.title, length: 70), project_commit_path(@project, commit.id), class: "cdark" | |
| 21 | + | |
| 26 | 22 | - if can? current_user, :download_code, @project |
| 27 | - = link_to archive_project_repository_path(@project, ref: tag.name) do | |
| 28 | - %i.icon-download-alt | |
| 29 | - Download | |
| 23 | + .pull-right | |
| 24 | + = link_to archive_project_repository_path(@project, ref: tag.name) do | |
| 25 | + %i.icon-download-alt | |
| 26 | + Download | |
| 27 | + | |
| 30 | 28 | |
| 31 | 29 | - else |
| 32 | 30 | %h3.nothing_here_message | ... | ... |