Skip to content

Commit

Permalink
Merge pull request #779 from sparc-request/kg-new_dashboard_header
Browse files Browse the repository at this point in the history
KG - New Dashboard Header
  • Loading branch information
jleonardw9 committed Dec 5, 2016
2 parents b3ba7db + 283aba5 commit fb026f9
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 33 deletions.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion app/views/dashboard/shared/_authorization_error.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
%body#body
#container
#header
= render 'layouts/dashboard/header_logos', in_dashboard: true
= render 'layouts/header_logos', location: "dashboard"
%input#current_user_id{type: 'hidden', value: @user.try(:id)}
= render 'layouts/dashboard/dashboard_header', user: @user
.flash
Expand Down
5 changes: 4 additions & 1 deletion app/views/layouts/_header_logos.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
= image_tag 'sctr_header.jpg', alt: 'org_logo', class: 'org-logo', height: 110
.col-md-6
%a{ href: HEADER_LINK_2 }
= image_tag 'sparc_request_header.jpg', alt: 'sparc_logo', class: 'sparc-request-header', height: 110
- if location == "proper"
= image_tag 'sparc_request_header.jpg', alt: 'sparc_logo', class: 'sparc-request-header', height: 110
- elsif location == "dashboard"
= image_tag 'dashboard/logos/dashboard_logo.jpg', alt: 'dashboard_logo', class: 'sparc-request-header', height: 110
.col-md-3
%a{ href: HEADER_LINK_3, target: '_blank' }
= image_tag 'musc_header.jpg', alt: 'institution_logo', class: 'institution-logo', height: 110
2 changes: 1 addition & 1 deletion app/views/layouts/application.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
%body#body
#container
#header
= render 'layouts/header_logos', in_dashboard: false
= render 'layouts/header_logos', location: "proper"
%input#current_user_id{ type: 'hidden', value: @user.try(:id) }
= render 'layouts/header', user: @user
.flash
Expand Down
29 changes: 0 additions & 29 deletions app/views/layouts/dashboard/_header_logos.html.haml

This file was deleted.

2 changes: 1 addition & 1 deletion app/views/layouts/dashboard/application.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
%body#body
#container
#header
= render 'layouts/header_logos'
= render 'layouts/header_logos', location: "dashboard"
%input#current_user_id{type: 'hidden', value: @user.try(:id)}
= render 'layouts/dashboard/dashboard_header', user: @user
.flash
Expand Down

0 comments on commit fb026f9

Please sign in to comment.