diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-05-05 13:09:50 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-05-05 13:09:50 +0300 |
commit | 7da7a790fa467aa1e3ad4ffc6c823c768590dcbd (patch) | |
tree | 33e3f6ee4db7eee8a0585896e2b13135bcd226b2 | |
parent | 4adac0b4bee1447d87babea86e94a224e6a8b015 (diff) |
Move clone panel to sidebar
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r-- | app/assets/stylesheets/pages/projects.scss | 10 | ||||
-rw-r--r-- | app/views/projects/_aside.html.haml | 5 | ||||
-rw-r--r-- | app/views/projects/_home_panel.html.haml | 4 | ||||
-rw-r--r-- | app/views/projects/empty.html.haml | 2 |
4 files changed, 12 insertions, 9 deletions
diff --git a/app/assets/stylesheets/pages/projects.scss b/app/assets/stylesheets/pages/projects.scss index 36a8a230578..e98570d88c2 100644 --- a/app/assets/stylesheets/pages/projects.scss +++ b/app/assets/stylesheets/pages/projects.scss @@ -28,19 +28,19 @@ .project-identicon-holder { position: absolute; left: 0; + top: -20px; .avatar { - width: 70px; - height: 70px; + width: 60px; + height: 60px; } .identicon { - font-size: 45px; - line-height: 1.6; + font-size: 28px; + line-height: 60px; } .avatar, .identicon { - @include border-radius(4px); box-shadow: 0 1px 2px #ddd; } } diff --git a/app/views/projects/_aside.html.haml b/app/views/projects/_aside.html.haml index aeee5126431..d3ddfa2f33b 100644 --- a/app/views/projects/_aside.html.haml +++ b/app/views/projects/_aside.html.haml @@ -34,8 +34,9 @@ = render 'projects/repositories/download_archive', split_button: true, btn_class: 'btn-group-sm' - -#%li - %span.light.prepend-left-20= repository_size + .append-bottom-20 + = render "shared/clone_panel" + - if @project.archived? .alert.alert-warning %h4 diff --git a/app/views/projects/_home_panel.html.haml b/app/views/projects/_home_panel.html.haml index 5689bdee1c6..32b1fab61e9 100644 --- a/app/views/projects/_home_panel.html.haml +++ b/app/views/projects/_home_panel.html.haml @@ -36,8 +36,8 @@ = link_to new_namespace_project_fork_path(@project.namespace, @project), title: "Fork project", class: 'btn btn-sm btn-default' do = link_to_toggle_fork - .project-home-row.hidden-xs +%hr + -#.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/empty.html.haml b/app/views/projects/empty.html.haml index 4f8104e0792..8080a904978 100644 --- a/app/views/projects/empty.html.haml +++ b/app/views/projects/empty.html.haml @@ -13,6 +13,8 @@ add a file or do a push via the command line. +.well + = render "shared/clone_panel" %h4 %strong Command line instructions %div.git-empty |