styled top panel
This commit is contained in:
parent
c844723a24
commit
ec01fa29fb
3 changed files with 29 additions and 43 deletions
|
@ -1,6 +1,5 @@
|
|||
%nav.main_menu
|
||||
-#= link_to "Activities", dashboard_path, :class => "#{"active" if current_page?(dashboard_path) || current_page?(root_path) }"
|
||||
= link_to "Projects", projects_path, :class => "#{"active" if current_page?(projects_path)}"
|
||||
= link_to "Issues", dashboard_issues_path, :class => "#{"active" if current_page?(dashboard_issues_path)}", :id => "issues_slide"
|
||||
= link_to "Requests", dashboard_merge_requests_path, :class => "#{"active" if current_page?(dashboard_merge_requests_path)}", :id => "merge_requests_slide"
|
||||
= link_to "Help", help_path, :class => "#{"active" if controller.controller_name == "help"}"
|
||||
= link_to "Projects", projects_path, :class => "#{"current" if current_page?(projects_path) || current_page?(root_path)}"
|
||||
= link_to "Issues", dashboard_issues_path, :class => "#{"current" if current_page?(dashboard_issues_path)}", :id => "issues_slide"
|
||||
= link_to "Requests", dashboard_merge_requests_path, :class => "#{"current" if current_page?(dashboard_merge_requests_path)}", :id => "merge_requests_slide"
|
||||
= link_to "Help", help_path, :class => "#{"current" if controller.controller_name == "help"}"
|
||||
|
|
|
@ -1,30 +1,21 @@
|
|||
%aside.projects
|
||||
- if current_user.can_create_project?
|
||||
.alert-message.block-message
|
||||
.widget
|
||||
You can create at least
|
||||
= current_user.projects_limit
|
||||
projects. Click on button to add a new one
|
||||
.alert-actions
|
||||
= link_to new_project_path, :class => "btn small" do
|
||||
New Project »
|
||||
%hr
|
||||
= link_to new_project_path, :class => "btn small" do
|
||||
New Project »
|
||||
|
||||
- if current_user.is_admin?
|
||||
.alert-message.block-message
|
||||
.widget
|
||||
You have administrator privilegies. You can configure application following this button:
|
||||
.alert-actions
|
||||
= link_to admin_root_path, :class => "btn small", :title => "Admin" do
|
||||
Visit Admin Area »
|
||||
%hr
|
||||
= link_to admin_root_path, :class => "btn small", :title => "Admin" do
|
||||
Visit Admin Area »
|
||||
|
||||
- if current_user.projects.count > 0
|
||||
%div.entry
|
||||
%h5
|
||||
Recent Projects:
|
||||
%ul
|
||||
- current_user.projects.order("id DESC").limit(5).each do |project|
|
||||
%li
|
||||
= link_to project_path(project) do
|
||||
= project.name
|
||||
= link_to "More » ", projects_path
|
||||
|
||||
= render "widgets/recent_projects"
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue