2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

Moved Scripts to html bottom and some reformatting

This commit is contained in:
Cristian Deluxe 2016-12-07 05:46:53 +01:00
parent 3f9190c083
commit 42b5c38c21
14 changed files with 95 additions and 75 deletions

View File

@ -18,26 +18,22 @@
<br/> <br/>
<a href="<TMPL_VAR NAME="URLX">"> <a href="<TMPL_VAR NAME="URLX">">
<TMPL_IF NAME="TIMEDAY"> <TMPL_IF NAME="TIMEDAY">
<img src="<TMPL_VAR NAME="CIMGDAY">" alt="<TMPL_VAR ESCAPE="HTML" NAME="LABEL">" <img src="<TMPL_VAR NAME="CIMGDAY">" alt="<TMPL_VAR ESCAPE="HTML" NAME="LABEL">" class="img-responsive i<TMPL_IF NAME="STATE_WARNING"> warn</TMPL_IF><TMPL_IF NAME="STATE_CRITICAL"> crit</TMPL_IF>"
class="img-responsive i<TMPL_IF NAME="STATE_WARNING"> warn</TMPL_IF><TMPL_IF NAME="STATE_CRITICAL"> crit</TMPL_IF>"
<TMPL_IF NAME="IMGDAYWIDTH">width="<TMPL_VAR NAME="IMGDAYWIDTH">" </TMPL_IF> <TMPL_IF NAME="IMGDAYWIDTH">width="<TMPL_VAR NAME="IMGDAYWIDTH">" </TMPL_IF>
<TMPL_IF NAME="IMGDAYHEIGHT">height="<TMPL_VAR NAME="IMGDAYHEIGHT">"</TMPL_IF>/> <TMPL_IF NAME="IMGDAYHEIGHT">height="<TMPL_VAR NAME="IMGDAYHEIGHT">"</TMPL_IF>/>
</TMPL_IF> </TMPL_IF>
<TMPL_IF NAME="TIMEWEEK"> <TMPL_IF NAME="TIMEWEEK">
<img src="<TMPL_VAR NAME="CIMGWEEK">" alt="<TMPL_VAR ESCAPE="HTML" NAME="LABEL">" <img src="<TMPL_VAR NAME="CIMGWEEK">" alt="<TMPL_VAR ESCAPE="HTML" NAME="LABEL">" class="img-responsive i<TMPL_IF NAME="STATE_WARNING"> warn</TMPL_IF><TMPL_IF NAME="STATE_CRITICAL"> crit</TMPL_IF>"
class="img-responsive i<TMPL_IF NAME="STATE_WARNING"> warn</TMPL_IF><TMPL_IF NAME="STATE_CRITICAL"> crit</TMPL_IF>"
<TMPL_IF NAME="IMGWEEKWIDTH">width="<TMPL_VAR NAME="IMGWEEKWIDTH">" </TMPL_IF> <TMPL_IF NAME="IMGWEEKWIDTH">width="<TMPL_VAR NAME="IMGWEEKWIDTH">" </TMPL_IF>
<TMPL_IF NAME="IMGWEEKHEIGHT">height="<TMPL_VAR NAME="IMGWEEKHEIGHT">"</TMPL_IF>/> <TMPL_IF NAME="IMGWEEKHEIGHT">height="<TMPL_VAR NAME="IMGWEEKHEIGHT">"</TMPL_IF>/>
</TMPL_IF> </TMPL_IF>
<TMPL_IF NAME="TIMEMONTH"> <TMPL_IF NAME="TIMEMONTH">
<img src="<TMPL_VAR NAME="CIMGMONTH">" alt="<TMPL_VAR ESCAPE="HTML" NAME="LABEL">" <img src="<TMPL_VAR NAME="CIMGMONTH">" alt="<TMPL_VAR ESCAPE="HTML" NAME="LABEL">" class="img-responsive i<TMPL_IF NAME="STATE_WARNING"> warn</TMPL_IF><TMPL_IF NAME="STATE_CRITICAL"> crit</TMPL_IF>"
class="img-responsive i<TMPL_IF NAME="STATE_WARNING"> warn</TMPL_IF><TMPL_IF NAME="STATE_CRITICAL"> crit</TMPL_IF>"
<TMPL_IF NAME="IMGMONTHWIDTH">width="<TMPL_VAR NAME="IMGMONTHWIDTH">" </TMPL_IF> <TMPL_IF NAME="IMGMONTHWIDTH">width="<TMPL_VAR NAME="IMGMONTHWIDTH">" </TMPL_IF>
<TMPL_IF NAME="IMGMONTHHEIGHT">height="<TMPL_VAR NAME="IMGMONTHHEIGHT">"</TMPL_IF>/> <TMPL_IF NAME="IMGMONTHHEIGHT">height="<TMPL_VAR NAME="IMGMONTHHEIGHT">"</TMPL_IF>/>
</TMPL_IF> </TMPL_IF>
<TMPL_IF NAME="TIMEYEAR"> <TMPL_IF NAME="TIMEYEAR">
<img src="<TMPL_VAR NAME="CIMGYEAR">" alt="<TMPL_VAR ESCAPE="HTML" NAME="LABEL">" <img src="<TMPL_VAR NAME="CIMGYEAR">" alt="<TMPL_VAR ESCAPE="HTML" NAME="LABEL">" class="img-responsive i<TMPL_IF NAME="STATE_WARNING"> warn</TMPL_IF><TMPL_IF NAME="STATE_CRITICAL"> crit</TMPL_IF>"
class="img-responsive i<TMPL_IF NAME="STATE_WARNING"> warn</TMPL_IF><TMPL_IF NAME="STATE_CRITICAL"> crit</TMPL_IF>"
<TMPL_IF NAME="IMGYEARWIDTH">width="<TMPL_VAR NAME="IMGYEARWIDTH">" </TMPL_IF> <TMPL_IF NAME="IMGYEARWIDTH">width="<TMPL_VAR NAME="IMGYEARWIDTH">" </TMPL_IF>
<TMPL_IF NAME="IMGYEARHEIGHT">height="<TMPL_VAR NAME="IMGYEARHEIGHT">"</TMPL_IF>/> <TMPL_IF NAME="IMGYEARHEIGHT">height="<TMPL_VAR NAME="IMGYEARHEIGHT">"</TMPL_IF>/>
</TMPL_IF> </TMPL_IF>
@ -47,5 +43,5 @@
</div> </div>
</TMPL_LOOP> </TMPL_LOOP>
<TMPL_INCLUDE NAME="partial/footer_pre.tmpl">
<TMPL_INCLUDE NAME="partial/footer.tmpl"> <TMPL_INCLUDE NAME="partial/footer.tmpl">

View File

@ -29,4 +29,5 @@
</TMPL_LOOP> </TMPL_LOOP>
</TMPL_LOOP> </TMPL_LOOP>
<TMPL_INCLUDE NAME="partial/footer_pre.tmpl">
<TMPL_INCLUDE NAME="partial/footer.tmpl"> <TMPL_INCLUDE NAME="partial/footer.tmpl">

View File

@ -29,4 +29,5 @@
</TMPL_LOOP> </TMPL_LOOP>
</TMPL_LOOP> </TMPL_LOOP>
<TMPL_INCLUDE NAME="partial/footer_pre.tmpl">
<TMPL_INCLUDE NAME="partial/footer.tmpl"> <TMPL_INCLUDE NAME="partial/footer.tmpl">

View File

@ -29,5 +29,6 @@
</TMPL_LOOP> </TMPL_LOOP>
</TMPL_LOOP> </TMPL_LOOP>
<TMPL_INCLUDE NAME="partial/footer_pre.tmpl">
<TMPL_INCLUDE NAME="partial/footer.tmpl"> <TMPL_INCLUDE NAME="partial/footer.tmpl">

View File

@ -29,4 +29,5 @@
</TMPL_LOOP> </TMPL_LOOP>
</TMPL_LOOP> </TMPL_LOOP>
<TMPL_INCLUDE NAME="partial/footer_pre.tmpl">
<TMPL_INCLUDE NAME="partial/footer.tmpl"> <TMPL_INCLUDE NAME="partial/footer.tmpl">

View File

@ -66,5 +66,5 @@
</TMPL_LOOP><!--END GROUPS Listing level 1 --> </TMPL_LOOP><!--END GROUPS Listing level 1 -->
</ul> </ul>
<div class="contentpusher"></div> <div class="contentpusher"></div>
<TMPL_INCLUDE NAME="partial/footer_pre.tmpl">
<TMPL_INCLUDE NAME="partial/footer.tmpl"> <TMPL_INCLUDE NAME="partial/footer.tmpl">

View File

@ -1,22 +1,24 @@
<TMPL_INCLUDE NAME="partial/head.tmpl"> <TMPL_INCLUDE NAME="partial/head.tmpl">
<ul id="tabs" class="nav nav-tabs" data-tabs="tabs"> <ul id="tabs" class="nav nav-tabs" data-tabs="tabs" role="tablist">
<TMPL_LOOP NAME="CATEGORIES"> <TMPL_LOOP NAME="CATEGORIES">
<li <TMPL_IF NAME="__FIRST__"> class="active" </TMPL_IF>> <li <TMPL_IF NAME="__FIRST__"> class="active" </TMPL_IF>>
<a href="#<TMPL_VAR ESCAPE="HTML" NAME="NAME">" data-toggle="tab"><TMPL_VAR ESCAPE="HTML" NAME="NAME"></a> <a href="#<TMPL_VAR ESCAPE="HTML" NAME="NAME">" data-toggle="tab">
<TMPL_VAR ESCAPE="HTML" NAME="NAME">
</a>
</li> </li>
</TMPL_LOOP> </TMPL_LOOP>
</ul> </ul>
<div id="my-tab-content" class="tab-content"> <div id="munin_nodeview_tab" class="tab-content">
<TMPL_LOOP NAME="CATEGORIES"> <TMPL_LOOP NAME="CATEGORIES">
<div class="tab-pane fade <TMPL_IF NAME="__FIRST__">in active</TMPL_IF>" id="<TMPL_VAR ESCAPE="HTML" NAME="NAME">"> <div class="tab-pane fade <TMPL_IF NAME="__FIRST__">in active</TMPL_IF>" id="<TMPL_VAR ESCAPE="HTML" NAME="NAME">">
<TMPL_LOOP NAME="SERVICES"> <TMPL_LOOP NAME="SERVICES">
<div class="row"> <div class="row">
<div class="col-md-6"> <div class="col-md-6">
<a href="<TMPL_VAR NAME="URLX">"> <a href="<TMPL_VAR NAME="URLX">">
<img class="img-responsive i<TMPL_IF NAME="STATE_WARNING"> warn</TMPL_IF><TMPL_IF NAME="STATE_CRITICAL"> crit</TMPL_IF>" <img class="lazyload img-responsive i<TMPL_IF NAME="STATE_WARNING"> warn</TMPL_IF><TMPL_IF NAME="STATE_CRITICAL"> crit</TMPL_IF>"
src="<TMPL_VAR NAME="IMGDAY">" data-src="<TMPL_VAR NAME="IMGDAY">"
alt="<TMPL_VAR ESCAPE="HTML" NAME="NAME">" alt="<TMPL_VAR ESCAPE="HTML" NAME="NAME">"
<TMPL_IF NAME="IMGDAYWIDTH">width="<TMPL_VAR NAME="IMGDAYWIDTH">" </TMPL_IF> <TMPL_IF NAME="IMGDAYWIDTH">width="<TMPL_VAR NAME="IMGDAYWIDTH">" </TMPL_IF>
<TMPL_IF NAME="IMGDAYHEIGHT">height="<TMPL_VAR NAME="IMGDAYHEIGHT">"</TMPL_IF>/> <TMPL_IF NAME="IMGDAYHEIGHT">height="<TMPL_VAR NAME="IMGDAYHEIGHT">"</TMPL_IF>/>
@ -24,8 +26,8 @@
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<a href="<TMPL_VAR NAME="URLX">"> <a href="<TMPL_VAR NAME="URLX">">
<img class="img-responsive i<TMPL_IF NAME="STATE_WARNING"> warn</TMPL_IF><TMPL_IF NAME="STATE_CRITICAL"> crit</TMPL_IF>" <img class="lazyload img-responsive i<TMPL_IF NAME="STATE_WARNING"> warn</TMPL_IF><TMPL_IF NAME="STATE_CRITICAL"> crit</TMPL_IF>"
src="<TMPL_VAR NAME="IMGWEEK">" data-src="<TMPL_VAR NAME="IMGWEEK">"
alt="<TMPL_VAR ESCAPE="HTML" NAME="NAME">" alt="<TMPL_VAR ESCAPE="HTML" NAME="NAME">"
<TMPL_IF NAME="IMGWEEKWIDTH">width="<TMPL_VAR NAME="IMGWEEKWIDTH">" </TMPL_IF> <TMPL_IF NAME="IMGWEEKWIDTH">width="<TMPL_VAR NAME="IMGWEEKWIDTH">" </TMPL_IF>
<TMPL_IF NAME="IMGWEEKHEIGHT">height="<TMPL_VAR NAME="IMGWEEKHEIGHT">"</TMPL_IF>/> <TMPL_IF NAME="IMGWEEKHEIGHT">height="<TMPL_VAR NAME="IMGWEEKHEIGHT">"</TMPL_IF>/>
@ -37,4 +39,5 @@
</TMPL_LOOP> </TMPL_LOOP>
</div> </div>
<TMPL_INCLUDE NAME="partial/footer_pre.tmpl">
<TMPL_INCLUDE NAME="partial/footer.tmpl"> <TMPL_INCLUDE NAME="partial/footer.tmpl">

View File

@ -92,4 +92,5 @@
</ul> </ul>
<div class="contentpusher"></div> <div class="contentpusher"></div>
<TMPL_INCLUDE NAME="partial/footer_pre.tmpl">
<TMPL_INCLUDE NAME="partial/footer.tmpl"> <TMPL_INCLUDE NAME="partial/footer.tmpl">

View File

@ -92,4 +92,5 @@
</div> </div>
</TMPL_LOOP> </TMPL_LOOP>
<TMPL_INCLUDE NAME="partial/footer_pre.tmpl">
<TMPL_INCLUDE NAME="partial/footer.tmpl"> <TMPL_INCLUDE NAME="partial/footer.tmpl">

View File

@ -196,6 +196,7 @@
</div> </div>
</div> </div>
<TMPL_INCLUDE NAME="partial/footer_pre.tmpl">
<script src="<TMPL_VAR NAME="R_PATH">/static/js/formatdate.js"></script> <script src="<TMPL_VAR NAME="R_PATH">/static/js/formatdate.js"></script>
<script src="<TMPL_VAR NAME="R_PATH">/static/js/querystring.js"></script> <script src="<TMPL_VAR NAME="R_PATH">/static/js/querystring.js"></script>
<script src="<TMPL_VAR NAME="R_PATH">/static/js/dynazoom.js"></script> <script src="<TMPL_VAR NAME="R_PATH">/static/js/dynazoom.js"></script>
@ -228,5 +229,5 @@
}); });
</script> </script>
<TMPL_INCLUDE NAME="partial/footer.tmpl">
<TMPL_INCLUDE NAME="partial/footer.tmpl">

View File

@ -1,28 +1,3 @@
</div>
<div style="margin-top: 20px;" class="container">
<div class="well well-sm">
<small>This page was generated by <a href="http://www.munin-monitoring.org/">Munin</a> version <TMPL_VAR NAME="MUNIN_VERSION"> at <TMPL_VAR NAME="TIMESTAMP"> with <a href="https://github.com/jonnymccullagh/munstrap">MunStrap</a> template.</small>
</div>
</div>
<script src="<TMPL_VAR NAME="R_PATH">/static/js/bootstrap.min.js"></script>
<script type="text/javascript">
//Bootstrap tab anchor fix
var url = document.location.toString();
if (url.match('#')) {
var taget = url.split('#')[1];
$('.nav-tabs a[href=#' + taget + ']').tab('show');
$('.tab-pane.active').removeClass('active');
$('.tab-pane.in').removeClass('in');
$('#' + taget).addClass('active');
$('#' + taget).addClass('in');
$('#' + taget).addClass('fade');
}
$('.nav-tabs a').on('shown', function (e) {
window.location.hash = e.target.hash;
});
</script>
</body> </body>
</html> </html>

View File

@ -0,0 +1,16 @@
</div>
<div style="margin-top: 20px;" class="container">
<div class="well well-sm">
<small>
This page was generated by <a href="http://www.munin-monitoring.org/">Munin</a>
version <TMPL_VAR NAME="MUNIN_VERSION"> at <TMPL_VAR NAME="TIMESTAMP">
with <a href="https://github.com/jonnymccullagh/munstrap">MunStrap</a> template.
</small>
</div>
</div>
<script src="<TMPL_VAR NAME="R_PATH">/static/js/jquery.min.js"></script>
<script src="<TMPL_VAR NAME="R_PATH">/static/js/lazysizes.min.js" async=""></script>
<script src="<TMPL_VAR NAME="R_PATH">/static/js/bootstrap.min.js"></script>
<script src="<TMPL_VAR NAME="R_PATH">/static/js/munstrap.js"></script>

View File

@ -13,7 +13,6 @@
<link rel="icon" type="image/png" href="<TMPL_VAR NAME="R_PATH">/static/img/favicon.png" /> <link rel="icon" type="image/png" href="<TMPL_VAR NAME="R_PATH">/static/img/favicon.png" />
<link href="<TMPL_VAR NAME="R_PATH">/static/css/bootstrap.min.css" rel="stylesheet" /> <link href="<TMPL_VAR NAME="R_PATH">/static/css/bootstrap.min.css" rel="stylesheet" />
<link href="<TMPL_VAR NAME="R_PATH">/static/css/style-munstrap.css" rel="stylesheet" /> <link href="<TMPL_VAR NAME="R_PATH">/static/css/style-munstrap.css" rel="stylesheet" />
<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
</head> </head>
<body> <body>
@ -64,16 +63,24 @@
</li> </li>
<li class="dropdown"> <li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Categories <b class="caret"></b></a> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Categories <b class="caret"></b></a>
<ul class="dropdown-menu" style="min-width: 300px;"> <ul class="dropdown-menu multi-level">
<TMPL_LOOP NAME="GLOBALCATS"> <TMPL_LOOP NAME="GLOBALCATS">
<li class="dropdown-submenu">
<a tabindex="-1" href="#"><TMPL_VAR NAME="NAME"></a>
<ul class="dropdown-menu">
<li> <li>
<a href="<TMPL_VAR NAME="R_PATH">/<TMPL_VAR NAME="URLDAY">"><TMPL_VAR NAME="NAME"></a> <a tabindex="-1" href="<TMPL_VAR NAME="R_PATH">/<TMPL_VAR NAME="URLDAY">">Day</a>
<div style="margin-left: 25px; margin-bottom: 5px;"> </li>
<a href="<TMPL_VAR NAME="R_PATH">/<TMPL_VAR NAME="URLDAY">"><span class="badge">d</span></a> <li>
<a href="<TMPL_VAR NAME="R_PATH">/<TMPL_VAR NAME="URLWEEK">"><span class="badge">w</span></a> <a href="<TMPL_VAR NAME="R_PATH">/<TMPL_VAR NAME="URLWEEK">">Week</a>
<a href="<TMPL_VAR NAME="R_PATH">/<TMPL_VAR NAME="URLMONTH">"><span class="badge">m</span></a> </li>
<a href="<TMPL_VAR NAME="R_PATH">/<TMPL_VAR NAME="URLYEAR">"><span class="badge">y</span></a> <li>
</div> <a href="<TMPL_VAR NAME="R_PATH">/<TMPL_VAR NAME="URLMONTH">">Month</a>
</li>
<li>
<a href="<TMPL_VAR NAME="R_PATH">/<TMPL_VAR NAME="URLYEAR">">Year</a>
</li>
</ul>
</li> </li>
</TMPL_LOOP> </TMPL_LOOP>
</ul> </ul>
@ -84,6 +91,4 @@
</nav> </nav>
<div class="container"> <div class="container">
<TMPL_INCLUDE NAME="logo_navigation.tmpl"> <TMPL_INCLUDE NAME="logo_navigation.tmpl">

View File

@ -1 +1,19 @@
<TMPL_LOOP NAME="PATH"><TMPL_IF NAME="NAME"> :: <TMPL_IF NAME="PATH"><a href="<TMPL_VAR NAME="PATH">"></TMPL_IF><TMPL_VAR NAME="NAME"><TMPL_IF NAME="PATH"></a></TMPL_IF><TMPL_ELSE><TMPL_IF NAME="PATH"><a href="<TMPL_VAR NAME="PATH">"></TMPL_IF>Overview<TMPL_IF NAME="PATH"></a></TMPL_IF></TMPL_IF></TMPL_LOOP> <TMPL_LOOP NAME="PATH">
<TMPL_IF NAME="NAME"> ::
<TMPL_IF NAME="PATH">
<a href="<TMPL_VAR NAME=" PATH">">
</TMPL_IF>
<TMPL_VAR NAME="NAME">
<TMPL_IF NAME="PATH">
</a>
</TMPL_IF>
<TMPL_ELSE>
<TMPL_IF NAME="PATH">
<a href="<TMPL_VAR NAME=" PATH">">
</TMPL_IF>
Overview
<TMPL_IF NAME="PATH">
</a>
</TMPL_IF>
</TMPL_IF>
</TMPL_LOOP>