Skip to content

Commit

Permalink
updated alert box as commented out after roscon early registration
Browse files Browse the repository at this point in the history
  • Loading branch information
rosbuild committed Aug 27, 2016
1 parent 28826a2 commit b6e2236
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions theme/rostheme.py
Expand Up @@ -112,30 +112,31 @@ def userpanel(self, d):
<div id="header"><div id="topnav">
<!-- Alert box -->
<!-- To enable the alert box uncomment the block below. Change the getItem and setItem calls to a new name. Then update the content below the button. -->
<!-- To enable the alert box uncomment the block below. Change the alert_box_name to a new name. Then update the content below the button. -->
<!-- Disabling alert box
<div class="alert alert-info alert-dismissable" style="text-align: center;">
<script>
jQuery(function( $ ){
state = localStorage.getItem('roswiki_osrf2014');
alert_box_name = 'roswiki_roscon2016_early_registration_last_day'
state = localStorage.getItem(alert_box_name);
if (!state) {
localStorage.setItem('roswiki_roscon2015cfp', 'open');
localStorage.setItem(alert_box_name, 'open');
}
state = localStorage.getItem('roswiki_roscon2015cfp');
state = localStorage.getItem(alert_box_name);
if (state == 'closed') {
$( '#topnav .alert' ).hide();
}
$( '.close' ).click(function () {
console.log('in .close.click');
localStorage.setItem('roswiki_osrf2014', 'closed');
localStorage.setItem(alert_box_name, 'closed');
$( '#topnav .alert' ).hide();
});
});
</script>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
The <a href="http://roscon.ros.org/2015/#call-for-proposals">ROSCon 2015 CFP</a> is open until July 7th. Submit your proposal <a href="http://roscon.ros.org/review">here</a>.
Early registration for <a href="http://roscon.ros.org/2016">ROSCon 2016</a> ends today, August 26th! <br><a href="https://events.osrfoundation.org/roscon-2016-registration/">Register now</a> to get the early registration discount. And <a href="http://conradhotels.hilton.com/en/ch/groups/personalized/S/SELCICI-GROSA-20161003/index.jhtml?WT.mc_id=POG">book you discounted hotel rooms</a> at our <a href="http://roscon.ros.org/2016/#location">discounted rates</a>.
</div>
End disabling alert box -->
End disabling alert box -->
<!-- End Alert box -->
<table id="topnav-table">
Expand Down

0 comments on commit b6e2236

Please sign in to comment.