summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-08-11 20:14:55 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-08-11 20:14:55 +0200
commit75d5a9234353d50d90f853175bf9af5b41d42044 (patch)
treed0c252cb8ca989e39717e01770911f4944298175 /templates
parent661f3d079c7643acac16ffa372c20d80ee42244b (diff)
use asset versioning
Diffstat (limited to 'templates')
-rw-r--r--templates/display.html.ep5
-rw-r--r--templates/exception.html.ep3
-rw-r--r--templates/infoscreen.html.ep9
-rw-r--r--templates/main.html.ep7
-rw-r--r--templates/not_found.html.ep3
5 files changed, 16 insertions, 11 deletions
diff --git a/templates/display.html.ep b/templates/display.html.ep
index 4cf52a2..5a98e1a 100644
--- a/templates/display.html.ep
+++ b/templates/display.html.ep
@@ -3,8 +3,9 @@
<head>
<title><%= $title %></title>
<meta charset="utf-8">
- %= stylesheet '/static/display.css'
- %= javascript '/static/jquery-2.1.1.min.js'
+ % my $av = 'v1'; # asset version
+ %= stylesheet "/static/${av}/css/display.css"
+ %= javascript '/static/js/jquery-2.1.1.min.js'
</head>
<body style="color: #<%= join(q{}, map { sprintf('%02x', $_) } @{$color} ) %>;
font-size: <%= $scale * 100 %>%;">
diff --git a/templates/exception.html.ep b/templates/exception.html.ep
index 2312586..aea4c40 100644
--- a/templates/exception.html.ep
+++ b/templates/exception.html.ep
@@ -4,7 +4,8 @@
<title>vrr-infoscreen</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- %= stylesheet '/static/main.css'
+ % my $av = 'v1'; # asset version
+ %= stylesheet "/static/${av}/css/main.css"
</head>
<body>
diff --git a/templates/infoscreen.html.ep b/templates/infoscreen.html.ep
index d634a93..a2f92e6 100644
--- a/templates/infoscreen.html.ep
+++ b/templates/infoscreen.html.ep
@@ -8,12 +8,13 @@
<meta http-equiv="refresh" content="<%= $self->stash('refresh_interval') %>"/>
% }
- %= stylesheet '/static/infoscreen.css'
+ % my $av = 'v1'; # asset version
+ %= stylesheet "/static/${av}/css/infoscreen.css"
% if ($self->browser->mobile) {
- %= stylesheet '/static/mobile.css'
+ %= stylesheet "/static/${av}/css/mobile.css"
% }
- %= javascript '/static/jquery-2.1.1.min.js'
- %= javascript '/static/collapse.js'
+ %= javascript '/static/js/jquery-2.1.1.min.js'
+ %= javascript "/static/${av}/js/collapse.js"
</head>
<body>
diff --git a/templates/main.html.ep b/templates/main.html.ep
index 1c539fb..3c18b49 100644
--- a/templates/main.html.ep
+++ b/templates/main.html.ep
@@ -4,9 +4,10 @@
<title><%= $title %></title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- %= stylesheet '/static/main.css'
- %= javascript '/static/jquery-2.1.1.min.js'
- %= javascript '/static/image.js'
+ % my $av = 'v1'; # asset version
+ %= stylesheet "/static/${av}/css/main.css"
+ %= javascript '/static/js/jquery-2.1.1.min.js'
+ %= javascript "/static/${av}/js/image.js"
</head>
<body>
diff --git a/templates/not_found.html.ep b/templates/not_found.html.ep
index 1fada6c..98bb664 100644
--- a/templates/not_found.html.ep
+++ b/templates/not_found.html.ep
@@ -4,7 +4,8 @@
<title>vrr-infoscreen</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- %= stylesheet '/static/main.css'
+ % my $av = 'v1'; # asset version
+ %= stylesheet "/static/${av}/css/main.css"
</head>
<body>