Commit 1bde927750b60d17334e188b70959059f3b00060
1 parent
98416ec9
Exists in
spb-stable
and in
2 other branches
Restyle git tags page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
4 changed files
with
15 additions
and
21 deletions
Show diff stats
app/assets/stylesheets/sections/projects.scss
app/views/projects/tags/_tag.html.haml
| ... | ... | @@ -5,18 +5,15 @@ |
| 5 | 5 | %i.icon-tag |
| 6 | 6 | = tag.name |
| 7 | 7 | .pull-right |
| 8 | - %small.cdark | |
| 9 | - %i.icon-calendar | |
| 10 | - #{time_ago_with_tooltip(commit.committed_date)} | |
| 11 | - %p.prepend-left-20 | |
| 12 | - = link_to commit.short_id(8), project_commit_path(@project, commit), class: "monospace" | |
| 13 | - – | |
| 14 | - = link_to_gfm truncate(commit.title, length: 70), project_commit_path(@project, commit.id), class: "cdark" | |
| 15 | - | |
| 16 | - %span.pull-right | |
| 17 | 8 | - if can? current_user, :download_code, @project |
| 18 | 9 | = render 'projects/repositories/download_archive', ref: tag.name, btn_class: 'btn-grouped btn-group-small' |
| 19 | 10 | - if can?(current_user, :admin_project, @project) |
| 20 | 11 | = link_to project_tag_path(@project, tag.name), class: 'btn btn-small btn-remove remove-row grouped', method: :delete, data: { confirm: 'Removed tag cannot be restored. Are you sure?'}, remote: true do |
| 21 | 12 | %i.icon-trash |
| 22 | 13 | |
| 14 | + - if commit | |
| 15 | + %ul.list-unstyled | |
| 16 | + = render 'projects/commits/inline_commit', commit: commit, project: @project | |
| 17 | + - else | |
| 18 | + %p | |
| 19 | + Cant find HEAD commit for this tag | ... | ... |
app/views/projects/tags/index.html.haml
| 1 | 1 | = render "projects/commits/head" |
| 2 | 2 | |
| 3 | -- if can? current_user, :push_code, @project | |
| 4 | - .pull-right | |
| 5 | - = link_to new_project_tag_path(@project), class: 'btn btn-create new-tag-btn' do | |
| 6 | - %i.icon-add-sign | |
| 7 | - New tag | |
| 3 | +%h3.page-title | |
| 4 | + Git Tags | |
| 5 | + - if can? current_user, :push_code, @project | |
| 6 | + .pull-right | |
| 7 | + = link_to new_project_tag_path(@project), class: 'btn btn-create new-tag-btn' do | |
| 8 | + %i.icon-add-sign | |
| 9 | + New tag | |
| 8 | 10 | |
| 9 | -%p | |
| 11 | +%p.light | |
| 10 | 12 | Tags give the ability to mark specific points in history as being important |
| 11 | 13 | %hr |
| 12 | 14 | ... | ... |
app/views/projects/tree/_tree.html.haml
| ... | ... | @@ -12,7 +12,7 @@ |
| 12 | 12 | %li |
| 13 | 13 | = link_to project_new_tree_path(@project, @id), title: 'New file', id: 'new-file-link' do |
| 14 | 14 | %small |
| 15 | - %i.icon-plus.light | |
| 15 | + %i.icon-plus | |
| 16 | 16 | |
| 17 | 17 | %div#tree-content-holder.tree-content-holder |
| 18 | 18 | %table#tree-slider{class: "table_#{@hex_path} tree-table" } | ... | ... |