Restlye project sidebar a bit to make it more clear
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
3b0cf49f33
commit
cecfbd55de
2 changed files with 16 additions and 11 deletions
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
= 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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue