Admin area improved
This commit is contained in:
parent
a769204ff4
commit
cc043f32d8
39 changed files with 434 additions and 334 deletions
|
@ -4,7 +4,4 @@
|
|||
= 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"
|
||||
- if current_user.is_admin?
|
||||
= link_to admin_root_path, :class => "admin", :title => "Admin" do
|
||||
Admin
|
||||
= link_to "Help", help_path, :class => "#{"active" if controller.controller_name == "help"}"
|
||||
|
|
|
@ -4,8 +4,16 @@
|
|||
You can create at least
|
||||
= current_user.projects_limit
|
||||
projects. Click on button to add a new one
|
||||
= link_to new_project_path, :class => "btn small" do
|
||||
New Project
|
||||
.alert-actions
|
||||
= link_to new_project_path, :class => "btn small" do
|
||||
New Project »
|
||||
|
||||
- if current_user.is_admin?
|
||||
.alert-message.block-message.info
|
||||
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 »
|
||||
|
||||
- if current_user.projects.count > 0
|
||||
%div.entry
|
||||
|
@ -18,21 +26,5 @@
|
|||
= project.name
|
||||
= link_to "More » ", projects_path
|
||||
|
||||
-#%h5
|
||||
-#Your Issues:
|
||||
-#%ul
|
||||
-#- current_user.assigned_issues.order("id DESC").limit(5).each do |issue|
|
||||
-#%li
|
||||
-#= link_to project_issue_path(issue.project, issue) do
|
||||
-#= truncate issue.title
|
||||
|
||||
|
||||
-#%h5
|
||||
-#Your Merge Requests:
|
||||
-#%ul
|
||||
-#- current_user.assigned_merge_requests.order("id DESC").limit(5).each do |issue|
|
||||
-#%li
|
||||
-#= link_to project_merge_request_path(issue.project, issue) do
|
||||
-#= truncate issue.title
|
||||
|
||||
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
%aside
|
||||
= link_to "Users", admin_users_path, :class => controller.controller_name == "users" ? "current" : nil
|
||||
= link_to "Projects", admin_projects_path, :class => controller.controller_name == "projects" ? "current" : nil
|
||||
= link_to "Teams", admin_team_members_path, :class => controller.controller_name == "team_members" ? "current" : nil
|
||||
= link_to "Emails", admin_emails_path, :class => controller.controller_name == "mailer" ? "current" : nil
|
||||
= link_to "Resque", "/info/resque"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue