Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <theephil@gmail.com>2015-03-29 14:23:56 +0300
committerPhil Hughes <theephil@gmail.com>2015-03-29 14:23:56 +0300
commit7652510c6ba5ed784506830667b94923d9eb8ca8 (patch)
treea920089763880cb99f19ee646985dd3910137a51 /app/views/projects
parent79bd8ca9895e030b20bbb7756e1583486c908386 (diff)
Moved download button into sidebar
Star and fork buttons moved up
Diffstat (limited to 'app/views/projects')
-rw-r--r--app/views/projects/_home_panel.html.haml14
-rw-r--r--app/views/projects/show.html.haml5
2 files changed, 9 insertions, 10 deletions
diff --git a/app/views/projects/_home_panel.html.haml b/app/views/projects/_home_panel.html.haml
index 599afe6e779..e0ceafc99e0 100644
--- a/app/views/projects/_home_panel.html.haml
+++ b/app/views/projects/_home_panel.html.haml
@@ -14,11 +14,6 @@
&ndash;
= link_to namespace_project_blob_path(@project.namespace, @project, tree_join(@repository.root_ref, readme.name)) do
= readme.name
-
- .project-home-row.hidden-xs
- - if current_user && !empty_repo
- .project-home-dropdown
- = render "dropdown"
%span.star.pull-right.prepend-left-10.js-toggler-container{class: @show_star ? 'on' : ''}
- if current_user
= link_to_toggle_star('Star this project.', false, true)
@@ -33,8 +28,9 @@
- else
= link_to new_namespace_project_fork_path(@project.namespace, @project), title: "Fork project", class: 'btn btn-default' do
= link_to_toggle_fork
- - unless @project.empty_repo?
- - if can? current_user, :download_code, @project
- .pull-right.prepend-left-10
- = render 'projects/repositories/download_archive', split_button: true
+
+ .project-home-row.hidden-xs
+ - if current_user && !empty_repo
+ .project-home-dropdown
+ = render "dropdown"
= render "shared/clone_panel"
diff --git a/app/views/projects/show.html.haml b/app/views/projects/show.html.haml
index cfa6f558dd6..b9d65a9bf59 100644
--- a/app/views/projects/show.html.haml
+++ b/app/views/projects/show.html.haml
@@ -87,6 +87,10 @@
- else
%span.light CI provided by
= link_to ci_service.title, ci_service.builds_path, :'data-no-turbolink' => 'data-no-turbolink'
+ - unless @project.empty_repo?
+ - if can? current_user, :download_code, @project
+ .pull-right.prepend-left-10
+ = render 'projects/repositories/download_archive', split_button: true
- if readme
.tab-pane#tab-readme
@@ -97,4 +101,3 @@
= readme.name
.wiki
= render_readme(readme)
-