summaryrefslogtreecommitdiff
path: root/templates/layouts
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-12-14 20:49:30 +0100
committerDaniel Friesel <derf@finalrewind.org>2018-12-14 20:49:30 +0100
commit8f11f5909eb841d8b42d3f61c0c59a780dce585f (patch)
treec9dd371ee275d7fd0af4ca6e00e0db2ba6f68d0b /templates/layouts
parenta940b8114f99e1a56378815028f4680b2ec1566f (diff)
use asset versioning
Diffstat (limited to 'templates/layouts')
-rw-r--r--templates/layouts/default.html.ep20
1 files changed, 10 insertions, 10 deletions
diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep
index 163955b..3edb715 100644
--- a/templates/layouts/default.html.ep
+++ b/templates/layouts/default.html.ep
@@ -8,28 +8,28 @@
<meta http-equiv="refresh" content="<%= $self->stash('refresh_interval') %>"/>
% }
-
- %= stylesheet '/static/default.css'
- %= stylesheet '/static/jquery-ui.min.css'
+ % my $av = 'v1'; # asset version
+ %= stylesheet "/static/${av}/default.css"
+ %= stylesheet "/static/${av}/jquery-ui.min.css"
% my $force_mobile = param('force_mobile') // -1;
% if ($force_mobile == 1 or ($self->browser->mobile and $force_mobile != 0)) {
- %= stylesheet '/static/mobile.css'
+ %= stylesheet "/static/${av}/mobile.css"
% }
%if (stash('load_marquee')) {
%= javascript '/static/jquery-1.10.2.min.js'
- %= javascript '/static/jquery-ui.min.js'
- %= javascript '/static/dbf.min.js'
- %= javascript '/static/marquee.min.js'
+ %= javascript "/static/${av}/jquery-ui.min.js"
+ %= javascript "/static/${av}/dbf.min.js"
+ %= javascript "/static/${av}/marquee.min.js"
%= javascript begin
$(function () { $('marquee').marquee() });
% end
% } else {
%= javascript '/static/jquery-1.10.2.min.js', defer => undef
- %= javascript '/static/jquery-ui.min.js', defer => undef
- %= javascript '/static/dbf.min.js', defer => undef
+ %= javascript "/static/${av}/jquery-ui.min.js", defer => undef
+ %= javascript "/static/${av}/dbf.min.js", defer => undef
% }
% if (stash('with_geolocation')) {
- %= javascript '/static/geolocation.min.js', defer => undef
+ %= javascript "/static/${av}/geolocation.min.js", defer => undef
% }
</head>
<body style="<%= (stash('hide_opts') ? 'margin: 0; padding: 0;' : q{}) %>