project page fixed
This commit is contained in:
parent
9bf39477de
commit
d405292388
6 changed files with 244 additions and 65 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue