Commit 83c1194d5220cd0e21569a9b255bf813eab69c86
Exists in
master
and in
4 other branches
Merge branch 'dev' into user_dashboard
Showing
15 changed files
with
67 additions
and
20 deletions
Show diff stats
app/controllers/admin/mailer_controller.rb
app/controllers/admin/projects_controller.rb
app/controllers/admin/team_members_controller.rb
app/controllers/admin/users_controller.rb
app/controllers/keys_controller.rb
app/controllers/profile_controller.rb
app/helpers/application_helper.rb
app/views/admin/_top_menu.html.haml
| ... | ... | @@ -1,6 +0,0 @@ |
| 1 | -%div.top_project_menu | |
| 2 | - %span= link_to "Users", admin_users_path, :style => "width:50px;", :class => controller.controller_name == "users" ? "current" : nil | |
| 3 | - %span= link_to "Projects", admin_projects_path, :style => "width:50px;", :class => controller.controller_name == "projects" ? "current" : nil | |
| 4 | - %span= link_to "Teams", admin_team_members_path, :style => "width:50px;", :class => controller.controller_name == "team_members" ? "current" : nil | |
| 5 | - %span= link_to "Emails", admin_emails_path, :style => "width:50px;", :class => controller.controller_name == "mailer" ? "current" : nil | |
| 6 | - |
app/views/admin/projects/index.html.haml
app/views/admin/team_members/index.html.haml
app/views/admin/users/index.html.haml
| ... | ... | @@ -0,0 +1,27 @@ |
| 1 | +!!! | |
| 2 | +%html | |
| 3 | + %head | |
| 4 | + %title | |
| 5 | + GitLab #{" - #{@project.name}" if @project && !@project.new_record?} | |
| 6 | + = stylesheet_link_tag "application" | |
| 7 | + = javascript_include_tag "application" | |
| 8 | + = csrf_meta_tags | |
| 9 | + %link{:href => "/assets/favicon.png", :rel => "icon", :type => "image/png"}/ | |
| 10 | + = javascript_tag do | |
| 11 | + REQ_URI = "#{request.env["REQUEST_URI"]}"; | |
| 12 | + REQ_REFFER = "#{request.env["HTTP_REFERER"]}"; | |
| 13 | + %body{ :class => content_for?(:body_class) ? yield(:body_class) : 'project-page', :id => yield(:boyd_id)} | |
| 14 | + #container | |
| 15 | + = render :partial => "layouts/flash" | |
| 16 | + = render :partial => "layouts/head_panel" | |
| 17 | + .project-container | |
| 18 | + .project-sidebar | |
| 19 | + .fixed | |
| 20 | + %aside | |
| 21 | + = link_to "Users", admin_users_path, :class => controller.controller_name == "users" ? "current" : nil | |
| 22 | + = link_to "Projects", admin_projects_path, :class => controller.controller_name == "projects" ? "current" : nil | |
| 23 | + = link_to "Teams", admin_team_members_path, :class => controller.controller_name == "team_members" ? "current" : nil | |
| 24 | + = link_to "Emails", admin_emails_path, :class => controller.controller_name == "mailer" ? "current" : nil | |
| 25 | + | |
| 26 | + .project-content | |
| 27 | + = yield | ... | ... |
app/views/layouts/application.html.haml
| ... | ... | @@ -19,11 +19,5 @@ |
| 19 | 19 | = render :partial => "layouts/flash" |
| 20 | 20 | = render :partial => "layouts/head_panel" |
| 21 | 21 | %div{ :id => "main", :role => "main", :class => "container_4" } |
| 22 | - - if @project && !@project.new_record? | |
| 23 | - .top_bar.container= render :partial => "projects/top_menu" | |
| 24 | - - if ["keys", "profile"].include?(controller.controller_name) | |
| 25 | - .top_bar.container= render :partial => "profile/top_menu" | |
| 26 | - - if admin_namespace? | |
| 27 | - .top_bar.container= render :partial => "admin/top_menu" | |
| 28 | 22 | = render :partial => "layouts/page_title" |
| 29 | 23 | = yield | ... | ... |
| ... | ... | @@ -0,0 +1,29 @@ |
| 1 | +!!! | |
| 2 | +%html | |
| 3 | + %head | |
| 4 | + %title | |
| 5 | + GitLab #{" - #{@project.name}" if @project && !@project.new_record?} | |
| 6 | + = stylesheet_link_tag "application" | |
| 7 | + = javascript_include_tag "application" | |
| 8 | + = csrf_meta_tags | |
| 9 | + %link{:href => "/assets/favicon.png", :rel => "icon", :type => "image/png"}/ | |
| 10 | + = javascript_tag do | |
| 11 | + REQ_URI = "#{request.env["REQUEST_URI"]}"; | |
| 12 | + REQ_REFFER = "#{request.env["HTTP_REFERER"]}"; | |
| 13 | + %body{ :class => content_for?(:body_class) ? yield(:body_class) : 'project-page', :id => yield(:boyd_id)} | |
| 14 | + #container | |
| 15 | + = render :partial => "layouts/flash" | |
| 16 | + = render :partial => "layouts/head_panel" | |
| 17 | + .project-container | |
| 18 | + .project-sidebar | |
| 19 | + .fixed | |
| 20 | + %aside | |
| 21 | + = link_to "Profile", profile_path, :class => current_page?(:controller => "profile", :action => :show) ? "current" : nil | |
| 22 | + = link_to "Password", profile_password_path, :class => current_page?(:controller => "profile", :action => :password) ? "current" : nil | |
| 23 | + = link_to keys_path, :class => controller.controller_name == "keys" ? "current" : nil do | |
| 24 | + Keys | |
| 25 | + - unless current_user.keys.empty? | |
| 26 | + %span{ :class => "number" }= current_user.keys.count | |
| 27 | + | |
| 28 | + .project-content | |
| 29 | + = yield | ... | ... |
app/views/profile/_top_menu.html.haml
| ... | ... | @@ -1,5 +0,0 @@ |
| 1 | -%div.top_project_menu | |
| 2 | - %span= link_to "Profile", profile_path, :class => current_page?(:controller => "profile", :action => :show) ? "current" : nil | |
| 3 | - %span= link_to "Password", profile_password_path, :style => "width:70px;", :class => current_page?(:controller => "profile", :action => :password) ? "current" : nil | |
| 4 | - %span= link_to "Keys", keys_path, :class => controller.controller_name == "keys" ? "current" : nil | |
| 5 | - |