get rid of sidebar

This commit is contained in:
Dmitriy Zaporozhets 2012-03-03 13:03:03 +02:00
parent 62707bb730
commit d6b051c5be
12 changed files with 28 additions and 121 deletions

View file

@ -1,8 +0,0 @@
%aside.project-right
- if content_for? :sidebar_all
= render :sidebar_all
- else
- if content_for? :sidebar_top_block
= yield :sidebar_top_block
= render "widgets/project_member"
= render "widgets/recent_projects"

View file

@ -1,21 +0,0 @@
%aside.projects
- if current_user.can_create_project?
.widget
You can create up to
= current_user.projects_limit
projects. Click on link below to add a new one
.link_holder
= link_to new_project_path, :class => "" do
New Project »
- if current_user.is_admin?
.widget
You have administrator privilegies. You can configure application following this button:
.link_holder
= link_to admin_root_path, :class => "", :title => "Admin" do
Visit Admin Area »
- if current_user.projects.count > 0
= render "widgets/recent_projects"

View file

@ -13,6 +13,4 @@
= link_to keys_path, :class => controller.controller_name == "keys" ? "current" : nil do
SSH Keys
.content
.row
.span12= yield
.sidebar= render "layouts/projects_side"
= yield

View file

@ -7,10 +7,5 @@
.container
= render :partial => "layouts/project_menu"
.content
- if @full_content
= yield
- else
.row
.span12= yield
.sidebar= render "layouts/project_side_right"
= yield