This commit is contained in:
gitlabhq 2011-10-31 13:30:53 +03:00
parent fb33ccd87f
commit 9bf39477de
4 changed files with 18 additions and 19 deletions

View file

@ -1,6 +1,7 @@
- if content_for?(:page_title)
= yield :page_title
- else
.page-title
.grid-4
.container_3
%h1= controller.controller_name.capitalize
%h2.icon
%span= controller.controller_name.capitalize

View file

@ -17,16 +17,13 @@
%body#thebody
#container
= render :partial => "layouts/flash"
- if user_signed_in?
= render :partial => "layouts/head_panel"
= render :partial => "layouts/page_title"
= render :partial => "layouts/head_panel"
%div{ :id => "main", :role => "main", :class => "container_4" }
- if @project && !@project.new_record?
.top_bar.container= render :partial => "projects/top_menu"
- if ["keys", "profile"].include?(controller.controller_name)
.top_bar.container= render :partial => "profile/top_menu"
- if admin_namespace?
.top_bar.container= render :partial => "admin/top_menu"
%div{ :id => "main", :role => "main", :class => "container_3" }
#content-container
= yield
= render :partial => "layouts/page_title"
= yield

View file

@ -1,9 +1,10 @@
- content_for(:page_title) do
.page-title
.container_3
.grid-4
%h2.icon
- if current_user.can_create_project?
%a.grey-button{:href => new_project_path} Create new project
%h1 Projects
%a.grey-button.right{:href => new_project_path} Create new project
%span
Projects
- unless @projects.empty?
%div{:class => "tile", :style => view_mode_style("tile")}