aboutsummaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorCamil Staps2016-07-18 21:38:57 +0200
committerCamil Staps2016-07-18 21:54:41 +0200
commitb911a84f7d667adf3f4d3e4fb98d9568a772b45d (patch)
treebd13af9bff57924b68ef22d2a19e571ace48c3d7 /resources
parentStatistics page (diff)
Fix previous commit
Diffstat (limited to 'resources')
-rw-r--r--resources/views/stats.blade.php (renamed from resources/views/stats.php)18
1 files changed, 11 insertions, 7 deletions
diff --git a/resources/views/stats.php b/resources/views/stats.blade.php
index a37095a..0326309 100644
--- a/resources/views/stats.php
+++ b/resources/views/stats.blade.php
@@ -20,9 +20,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<head>
<meta charset="utf-8">
<title>HebrewParseTrainer statistics</title>
- <link rel="stylesheet" href="vendor/twbs/bootstrap/dist/css/bootstrap.min.css">
- <link rel="stylesheet" href="vendor/twbs/bootstrap/dist/css/bootstrap-theme.min.css">
- <link rel="stylesheet" href="public/css/hebrewparsetrainer.css">
+ <link rel="stylesheet" href="{{ url("/vendor/twbs/bootstrap/dist/css/bootstrap.min.css") }}">
+ <link rel="stylesheet" href="{{ url("/vendor/twbs/bootstrap/dist/css/bootstrap-theme.min.css") }}">
+ <link rel="stylesheet" href="{{ url("/public/css/hebrewparsetrainer.css") }}">
</head>
<body role="application">
<div class="container" role="main">
@@ -53,10 +53,10 @@ foreach ($db_stats as $stat) {
$stats = "[" . implode(",", $stats) . "]";
?>
-<script src="vendor/components/jquery/jquery.min.js"></script>
-<script src="vendor/twbs/bootstrap/dist/js/bootstrap.min.js"></script>
+<script src="{{ url("/vendor/components/jquery/jquery.min.js") }}"></script>
+<script src="{{ url("/vendor/twbs/bootstrap/dist/js/bootstrap.min.js") }}"></script>
<script src="//code.highcharts.com/highcharts.js"></script>
-<script src="public/js/hebrewparsetrainer.js"></script>
+<script src="{{ url("/public/js/hebrewparsetrainer.js") }}"></script>
<script type="text/javascript">
$('#statistics').highcharts({
@@ -67,11 +67,15 @@ $stats = "[" . implode(",", $stats) . "]";
min: 0,
title: { text: 'Requests' }
},
+ plotOptions: { column: {
+ pointPadding: 0,
+ groupPadding: 0
+ } },
tooltip: { pointFormat: '<b>{point.y}</b> requests' },
series: [
{
name: 'Requests',
- data: <?=$stats?>
+ data: {{ $stats }}
}
]
});