Moved all content out of /static into /src/templates/default to generate a single template (most things werent actually static but can/should based on template/theme.

pull/624/head
damian 2018-08-19 16:36:54 +10:00
parent 0e64ff54d1
commit 5eb175ce52
28 changed files with 18 additions and 25 deletions

View File

View File

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

View File

16
src/templates/default/main/body.tpl.html Normal file → Executable file
View File

@ -12,18 +12,18 @@
<link rel="icon" type="image/png" href="favicon.png" />
<link rel="apple-touch-icon" href="favicon.png" />
<!-- Le styles -->
<link href="static/plugin/twitter-bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="static/plugin/twitter-bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet">
<link href="static/plugin/bootstrap-multiselect/bootstrap-multiselect.min.css" rel="stylesheet">
<link href="static/css/style.css" rel="stylesheet">
<link href="src/templates/default/plugin/twitter-bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="src/templates/default/plugin/twitter-bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet">
<link href="src/templates/default/plugin/bootstrap-multiselect/bootstrap-multiselect.min.css" rel="stylesheet">
<link href="src/templates/default/css/style.css" rel="stylesheet">
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script type="text/javascript" src="static/plugin/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="static/plugin/twitter-bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="static/plugin/bootstrap-multiselect/bootstrap-multiselect.min.js"></script>
<script type="text/javascript" src="static/js/scripts.js"></script>
<script type="text/javascript" src="src/templates/default/plugin/jquery/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="src/templates/default/plugin/twitter-bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="src/templates/default/plugin/bootstrap-multiselect/bootstrap-multiselect.min.js"></script>
<script type="text/javascript" src="src/templates/default/js/scripts.js"></script>
</head>
{% endblock %}
<body data-spy="scroll" data-target=".subnav" data-offset="50" class="{{ body_class }}">

2
src/templates/default/module/install/main.tpl.html Normal file → Executable file
View File

@ -1,6 +1,6 @@
<div class="hero-unit">
<div class="install_header">
<p class="pull-left"><a href="http://www.phpservermonitor.org/"><img class="pull-left" src="static/phpservermon.png" alt="" /></a></p>
<p class="pull-left"><a href="http://www.phpservermonitor.org/"><img class="pull-left" src="src/templates/default/img/phpservermon.png" alt="" /></a></p>
<h2>&nbsp;PHP Server Monitor</h2>
<p class="clearfix"></p>
</div>

18
src/templates/default/module/server/history.tpl.html Normal file → Executable file
View File

@ -1,19 +1,19 @@
<link href="static/plugin/jqplot/jquery.jqplot.min.css" rel="stylesheet" >
<!--[if lt IE 9]><script type="text/javascript" src="static/plugin/excanvas.js"></script><![endif]-->
<script type="text/javascript" src="static/plugin/jqplot/jquery.jqplot.min.js"></script>
<script type="text/javascript" src="static/plugin/jqplot/jqplot.canvasOverlay.min.js"></script>
<script type="text/javascript" src="static/plugin/jqplot/jqplot.cursor.min.js"></script>
<script type="text/javascript" src="static/plugin/jqplot/jqplot.dateAxisRenderer.min.js"></script>
<script type="text/javascript" src="static/plugin/jqplot/jqplot.highlighter.min.js"></script>
<link href="src/templates/default/plugin/jqplot/jquery.jqplot.min.css" rel="stylesheet" >
<!--[if lt IE 9]><script type="text/javascript" src="src/templates/default/plugin/excanvas.js"></script><![endif]-->
<script type="text/javascript" src="src/templates/default/plugin/jqplot/jquery.jqplot.min.js"></script>
<script type="text/javascript" src="src/templates/default/plugin/jqplot/jqplot.canvasOverlay.min.js"></script>
<script type="text/javascript" src="src/templates/default/plugin/jqplot/jqplot.cursor.min.js"></script>
<script type="text/javascript" src="src/templates/default/plugin/jqplot/jqplot.dateAxisRenderer.min.js"></script>
<script type="text/javascript" src="src/templates/default/plugin/jqplot/jqplot.highlighter.min.js"></script>
<link href="static/css/history.css" rel="stylesheet" >
<link href="src/templates/default/css/history.css" rel="stylesheet" >
<script type="text/javascript">
var day_format = '{{ day_format }}';
var long_date_format = '{{ long_date_format }}';
var short_date_format = '{{ short_date_format }}';
var short_time_format = '{{ short_time_format }}';
</script>
<script type="text/javascript" src="static/js/history.js"></script>
<script type="text/javascript" src="src/template/default/js/history.js"></script>
<div id="history-panel">
{% for graph in graphs %}

View File

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 43 KiB

View File

@ -1,7 +0,0 @@
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body></body>
</html>