Commit 1bde9277 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Restyle git tags page

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 98416ec9
...@@ -179,11 +179,6 @@ ul.nav.nav-projects-tabs { ...@@ -179,11 +179,6 @@ ul.nav.nav-projects-tabs {
font-weight: normal; font-weight: normal;
} }
.new-tag-btn {
position: relative;
top: -5px;
}
.public-projects .repo-info { .public-projects .repo-info {
color: #777; color: #777;
......
...@@ -5,18 +5,15 @@ ...@@ -5,18 +5,15 @@
%i.icon-tag %i.icon-tag
= tag.name = tag.name
.pull-right .pull-right
%small.cdark
%i.icon-calendar
#{time_ago_with_tooltip(commit.committed_date)}
%p.prepend-left-20
= link_to commit.short_id(8), project_commit_path(@project, commit), class: "monospace"
&ndash;
= link_to_gfm truncate(commit.title, length: 70), project_commit_path(@project, commit.id), class: "cdark"
%span.pull-right
- if can? current_user, :download_code, @project - if can? current_user, :download_code, @project
= render 'projects/repositories/download_archive', ref: tag.name, btn_class: 'btn-grouped btn-group-small' = render 'projects/repositories/download_archive', ref: tag.name, btn_class: 'btn-grouped btn-group-small'
- if can?(current_user, :admin_project, @project) - if can?(current_user, :admin_project, @project)
= 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 = 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
%i.icon-trash %i.icon-trash
- if commit
%ul.list-unstyled
= render 'projects/commits/inline_commit', commit: commit, project: @project
- else
%p
Cant find HEAD commit for this tag
= render "projects/commits/head" = render "projects/commits/head"
- if can? current_user, :push_code, @project %h3.page-title
Git Tags
- if can? current_user, :push_code, @project
.pull-right .pull-right
= link_to new_project_tag_path(@project), class: 'btn btn-create new-tag-btn' do = link_to new_project_tag_path(@project), class: 'btn btn-create new-tag-btn' do
%i.icon-add-sign %i.icon-add-sign
New tag New tag
%p %p.light
Tags give the ability to mark specific points in history as being important Tags give the ability to mark specific points in history as being important
%hr %hr
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
%li %li
= link_to project_new_tree_path(@project, @id), title: 'New file', id: 'new-file-link' do = link_to project_new_tree_path(@project, @id), title: 'New file', id: 'new-file-link' do
%small %small
%i.icon-plus.light %i.icon-plus
%div#tree-content-holder.tree-content-holder %div#tree-content-holder.tree-content-holder
%table#tree-slider{class: "table_#{@hex_path} tree-table" } %table#tree-slider{class: "table_#{@hex_path} tree-table" }
......
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