Skip to content

Commit

Permalink
set the navigation background color to the conference color on the sp…
Browse files Browse the repository at this point in the history
…lashpage
  • Loading branch information
shanet committed May 8, 2016
1 parent c13bee9 commit a7ef9a7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/views/conference/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,14 @@
$('#banner').css('background-image', 'url("' + pattern.png() + '")');
});
});

// Set the navigation background color as the conference color
- unless @conference.color.blank?
- content_for :script_head do
:javascript
$(function () {
$(document).ready(function() {
$('.navbar-default').css('background-color', '#{@conference.color}');
$('.navbar-default').css('border-bottom', '1px solid #333');
});
});

0 comments on commit a7ef9a7

Please sign in to comment.