File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79,9 +79,12 @@ $(document).ready(function() {
7979 } ) ;
8080
8181 if ( issue . state == 'open' ) {
82- $ ( '#panel' ) . data ( 'incident' , 'true' ) ;
83- $ ( '#panel' ) . attr ( 'class' , ( status === 'operational' ? 'panel-success' : 'panel-warn' ) ) ;
84- $ ( '#paneltitle' ) . html ( '<a href="#incidents">' + issue . title + '</a>' ) ;
82+ $ ( '#incidentpanel' ) . data ( 'incident' , 'true' ) ;
83+ $ ( '#incidentpanel' ) . attr ( 'class' , ( status === 'operational' ? 'panel-success' : 'panel-warn' ) ) ;
84+ $ ( '#incidentpaneltitle' ) . html ( '<a href="#incidents">' + issue . title + '</a>' ) ;
85+ $ ( '#incidentpanel' ) . show ( ) ;
86+ } else {
87+ $ ( '#incidentpanel' ) . hide ( ) ;
8588 }
8689
8790 var html = '<div class="list-group-item">\n' ;
Original file line number Diff line number Diff line change @@ -19,12 +19,17 @@ <h1>Status Page</h1>
1919 < h3 class ="panel-title " id ="paneltitle "> </ h3 >
2020 </ div >
2121 </ div >
22+ < div class ="panel " id ="incidentpanel " style ="display:none; ">
23+ < div class ="panel-heading ">
24+ < h3 class ="panel-title " id ="incidentpaneltitle "> </ h3 >
25+ </ div >
26+ </ div >
2227 < h4 class ="page-header "> Systems</ h4 >
2328 < div class ="list-group " id ="services "> </ div >
2429 < h4 class ="page-header "> Incidents</ h4 >
2530 < div class ="list-group " id ="incidents "> </ div >
2631 < script src ="//code.jquery.com/jquery.min.js "> </ script >
2732 < script src ="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js "> </ script >
28- < script src ="assets/js/script.js?v=c2d "> </ script >
33+ < script src ="assets/js/script.js?v=d.2 "> </ script >
2934</ body >
3035</ html >
You can’t perform that action at this time.
0 commit comments