diff options
author | gitlabhq <m@gitlabhq.com> | 2011-11-01 11:00:59 +0200 |
---|---|---|
committer | gitlabhq <m@gitlabhq.com> | 2011-11-01 11:00:59 +0200 |
commit | d405292388c642117c8300a0a4931fc9a4eb1f66 (patch) | |
tree | 1cdc94df6762574ff49afc561c93cff10a756674 /app/views | |
parent | 9bf39477dec99eacda9443e39a631d5b5a11eef6 (diff) | |
download | gitlab-ce-d405292388c642117c8300a0a4931fc9a4eb1f66.tar.gz |
project page fixed
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/layouts/_page_title.html.haml | 2 | ||||
-rw-r--r-- | app/views/layouts/application.html.haml | 2 | ||||
-rw-r--r-- | app/views/projects/_tile.html.haml | 2 | ||||
-rw-r--r-- | app/views/projects/index.html.haml | 9 |
4 files changed, 8 insertions, 7 deletions
diff --git a/app/views/layouts/_page_title.html.haml b/app/views/layouts/_page_title.html.haml index 9cd028bea36..ec8fa89d748 100644 --- a/app/views/layouts/_page_title.html.haml +++ b/app/views/layouts/_page_title.html.haml @@ -1,7 +1,7 @@ - if content_for?(:page_title) = yield :page_title - else - .grid-4 + .grid_4 .container_3 %h2.icon %span= controller.controller_name.capitalize diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 54a2ada41f8..b525df4493e 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -14,7 +14,7 @@ = javascript_tag do REQ_URI = "#{request.env["REQUEST_URI"]}"; REQ_REFFER = "#{request.env["HTTP_REFERER"]}"; - %body#thebody + %body{ :class => yield(:body_class), :id => yield(:boyd_id)} #container = render :partial => "layouts/flash" = render :partial => "layouts/head_panel" diff --git a/app/views/projects/_tile.html.haml b/app/views/projects/_tile.html.haml index ced0bf3bd70..7c0b8679c08 100644 --- a/app/views/projects/_tile.html.haml +++ b/app/views/projects/_tile.html.haml @@ -1,7 +1,7 @@ - @projects.in_groups_of(3, false) do |projects| - projects.each_with_index do |project, i| %div.grid_1 - %div{ :class => "project-box ui-box ui-box-big", :style => i == 2 ? "" : "margin-right:30px;" } + %div{ :class => "project-box ui-box ui-box-big" } = link_to project_path(project) do %h3= project.name .data diff --git a/app/views/projects/index.html.haml b/app/views/projects/index.html.haml index 45187b444f8..a35ead82f7f 100644 --- a/app/views/projects/index.html.haml +++ b/app/views/projects/index.html.haml @@ -1,8 +1,9 @@ +- content_for(:body_class, "projects-page") - content_for(:page_title) do - .grid-4 - %h2.icon - - if current_user.can_create_project? - %a.grey-button.right{:href => new_project_path} Create new project + .grid_4 + - if current_user.can_create_project? + %a.grey-button.right{:href => new_project_path} Create new project + %h2.icon %span Projects |