summaryrefslogtreecommitdiff
path: root/app/views/projects/show.html.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-04-14 17:08:01 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-04-14 17:08:01 +0300
commitdab1824679406e116ea6a32dd8e544d88daf9f98 (patch)
tree901d67cecd6b9ac6c5a325929ecdbfd95d3f0279 /app/views/projects/show.html.haml
parent0c6217e2dc248b632520ebf31b75983e4081a1e8 (diff)
downloadgitlab-ce-dab1824679406e116ea6a32dd8e544d88daf9f98.tar.gz
Align project download button with others in sidebar on project home page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/projects/show.html.haml')
-rw-r--r--app/views/projects/show.html.haml10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/views/projects/show.html.haml b/app/views/projects/show.html.haml
index 160a17cebe7..4464c51744a 100644
--- a/app/views/projects/show.html.haml
+++ b/app/views/projects/show.html.haml
@@ -60,11 +60,16 @@
- unless @project.empty_repo?
= link_to namespace_project_compare_index_path(@project.namespace, @project, from: @repository.root_ref, to: @ref || @repository.root_ref), class: 'btn btn-block' do
+ %i.fa.fa-exchange
Compare code
+ - if can?(current_user, :download_code, @project)
+ = render 'projects/repositories/download_archive', split_button: true, btn_class: 'btn-block'
+
- if version = @repository.version
- detail_url = changelog_url(@project) || version_url(@project)
= link_to detail_url, class: 'btn btn-block' do
+ %i.fa.fa-file-text-o
Version:
%span.count
= @repository.blob_by_oid(version.id).data
@@ -80,11 +85,6 @@
- else
#{link_to @project.owner_name, @project.owner}
- - unless @project.empty_repo?
- - if can? current_user, :download_code, @project
- %hr
- .prepend-top-10.append-bottom-10
- = render 'projects/repositories/download_archive', split_button: true
.prepend-top-10
- @project.ci_services.each do |ci_service|