From 010ac2b17f1e4bd0e104a90fd8bfc8c7bcb67ac8 Mon Sep 17 00:00:00 2001 From: randx Date: Tue, 2 Oct 2012 22:08:30 +0300 Subject: [PATCH] Added back link. cleanup group show page --- app/views/groups/show.html.haml | 60 +++++++++++++++++++++++------------------------------------- 1 file changed, 23 insertions(+), 37 deletions(-) diff --git a/app/views/groups/show.html.haml b/app/views/groups/show.html.haml index 7552128..074288a 100644 --- a/app/views/groups/show.html.haml +++ b/app/views/groups/show.html.haml @@ -1,42 +1,28 @@ -- if @projects.any? - .projects - .activities.span8 - = render 'shared/no_ssh' - - if @events.any? - .content_list= render @events - - else - %h4.nothing_here_message Projects activity will be displayed here - .loading.hide - .side - = render "events/event_last_push", event: @last_push - = render "projects", projects: @projects - %div - %span.rss-icon - = link_to dashboard_path(:atom, { private_token: current_user.private_token }) do - = image_tag "rss_ui.png", title: "feed" - %strong News Feed - - %hr - .gitlab-promo - = link_to "Homepage", "http://gitlabhq.com" - = link_to "Blog", "http://blog.gitlabhq.com" - = link_to "@gitlabhq", "https://twitter.com/gitlabhq" - - -- else - %h3.nothing_here_message There are no projects you have access to. - %br - %h4.nothing_here_message - - if current_user.can_create_project? - You can create up to - = current_user.projects_limit - projects. Click on button below to add a new one - .link_holder - = link_to new_project_path, class: "btn primary" do - New Project ยป +.projects + .activities.span8 + .back_link + = link_to dashboard_path do + ← To dashboard + = render 'shared/no_ssh' + - if @events.any? + .content_list= render @events - else - If you will be added to project - it will be displayed here + %h4.nothing_here_message Projects activity will be displayed here + .loading.hide + .side + = render "events/event_last_push", event: @last_push + = render "projects", projects: @projects + %div + %span.rss-icon + = link_to dashboard_path(:atom, { private_token: current_user.private_token }) do + = image_tag "rss_ui.png", title: "feed" + %strong News Feed + %hr + .gitlab-promo + = link_to "Homepage", "http://gitlabhq.com" + = link_to "Blog", "http://blog.gitlabhq.com" + = link_to "@gitlabhq", "https://twitter.com/gitlabhq" :javascript $(function(){ Pager.init(20); }); -- libgit2 0.21.2