Skip to content

Commit

Permalink
Merge pull request #786 from sparc-request/jl-header-logo-refactor
Browse files Browse the repository at this point in the history
Refactor of how the respective header logos of proper and dashboard f…
  • Loading branch information
jleonardw9 committed Dec 5, 2016
2 parents 086058b + 8d2e57e commit 4963a83
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
7 changes: 4 additions & 3 deletions app/views/layouts/_header_logos.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@
%a{ href: HEADER_LINK_1 }
= image_tag 'sctr_header.jpg', alt: 'org_logo', class: 'org-logo', height: 110
.col-md-6
%a{ href: HEADER_LINK_2 }
- if location == "proper"
- if location == "proper"
%a{ href: HEADER_LINK_2_PROPER }
= image_tag 'sparc_request_header.jpg', alt: 'sparc_logo', class: 'sparc-request-header', height: 110
- elsif location == "dashboard"
- elsif location == "dashboard"
%a{ href: HEADER_LINK_2_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' }
Expand Down
6 changes: 4 additions & 2 deletions config/application.yml.example
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ development:
dashboard_link: 'http://musc-pro.homelinux.net:3001/dashboard'
create_an_account: false
header_link_1: http://sctr.musc.edu
header_link_2: http://localhost:3000/
header_link_2_proper: http://localhost:3000/
header_link_2_dashboard: http://localhost:3000/dashboard
header_link_3: http://www.musc.edu
use_indirect_cost: false
use_shiboleth: true
Expand Down Expand Up @@ -98,7 +99,8 @@ test:
root_url: /
dashboard_link: /dashboard
header_link_1: http://sctr.musc.edu
header_link_2: http://localhost:3000/
header_link_2_proper: http://localhost:3000/
header_link_2_dashboard: http://localhost:3000/dashboard
header_link_3: http://www.musc.edu
editable_statuses: { 14: ['first_draft', 'draft', 'submitted', nil, 'get_a_cost_estimate', 'awaiting_pi_approval'],
48: ['draft', 'submitted'] }
Expand Down
5 changes: 3 additions & 2 deletions config/initializers/01_obis_setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@
ROOT_URL = application_config['root_url']
DASHBOARD_LINK = application_config['dashboard_link']
HEADER_LINK_1 = application_config['header_link_1']
HEADER_LINK_2 = application_config['header_link_2']
HEADER_LINK_2_PROPER = application_config['header_link_2_proper']
HEADER_LINK_2_DASHBOARD = application_config['header_link_2_dashboard']
HEADER_LINK_3 = application_config['header_link_3']
USE_INDIRECT_COST = application_config['use_indirect_cost']
USE_SHIBBOLETH = application_config['use_shiboleth']
USE_SHIBBOLETH = application_config['use_shiboleth']
USE_SHIBBOLETH_ONLY = application_config['use_shibboleth_only']
USE_LDAP = application_config['use_ldap']
SUPPRESS_LDAP_FOR_USER_SEARCH = application_config['suppress_ldap_for_user_search'] || nil
Expand Down

0 comments on commit 4963a83

Please sign in to comment.