Restlye project sidebar a bit to make it more clear

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2015-05-05 19:38:53 +03:00
parent 3b0cf49f33
commit cecfbd55de
No known key found for this signature in database
GPG key ID: 161B5D6A44D3D88A
2 changed files with 16 additions and 11 deletions

View file

@ -203,11 +203,16 @@ ul.nav.nav-projects-tabs {
.well { .well {
h4 { h4 {
font-weight: normal; font-weight: normal;
margin: 0;
} }
.nav-pills a { .nav-pills a {
padding: 10px; padding: 10px;
} }
.nav {
margin: 10px 0;
}
} }
} }

View file

@ -10,14 +10,14 @@
%li= link_to pluralize(number_with_delimiter(@repository.branch_names.count), 'branch'), namespace_project_branches_path(@project.namespace, @project) %li= link_to pluralize(number_with_delimiter(@repository.branch_names.count), 'branch'), namespace_project_branches_path(@project.namespace, @project)
%li= link_to pluralize(number_with_delimiter(@repository.tag_names.count), 'tag'), namespace_project_tags_path(@project.namespace, @project) %li= link_to pluralize(number_with_delimiter(@repository.tag_names.count), 'tag'), namespace_project_tags_path(@project.namespace, @project)
%hr .actions
= link_to namespace_project_compare_index_path(@project.namespace, @project, from: @repository.root_ref, to: @ref || @repository.root_ref), class: 'btn btn-sm' do = link_to namespace_project_compare_index_path(@project.namespace, @project, from: @repository.root_ref, to: @ref || @repository.root_ref), class: 'btn btn-sm' do
%i.fa.fa-exchange %i.fa.fa-exchange
Compare code Compare code
- if can?(current_user, :download_code, @project) - if can?(current_user, :download_code, @project)
&nbsp; &nbsp;
= render 'projects/repositories/download_archive', split_button: true, btn_class: 'btn-group-sm' = render 'projects/repositories/download_archive', split_button: true, btn_class: 'btn-group-sm'
- unless @project.empty_repo? - unless @project.empty_repo?
.well .well
@ -35,10 +35,10 @@
%li %li
= link_to license_url(@project) do = link_to license_url(@project) do
License License
%hr .actions
= link_to url_for_new_issue(@project, only_path: true), title: "New Issue", class: 'btn btn-sm' do = link_to url_for_new_issue(@project, only_path: true), title: "New Issue", class: 'btn btn-sm' do
%i.fa.fa-fw.fa-exclamation-circle %i.fa.fa-fw.fa-exclamation-circle
New issue New issue