forked from leftypol/leftypol
templates: bust all js caches with resource_version
This commit is contained in:
parent
b438283e32
commit
abfa773282
6 changed files with 25 additions and 25 deletions
|
@ -18,10 +18,10 @@
|
||||||
<script type="text/javascript" src="{{ config.url_javascript }}?v={{ config.resource_version }}"></script>
|
<script type="text/javascript" src="{{ config.url_javascript }}?v={{ config.resource_version }}"></script>
|
||||||
{% if not config.additional_javascript_compile %}
|
{% if not config.additional_javascript_compile %}
|
||||||
{% if not config.deferred_javascript %}
|
{% if not config.deferred_javascript %}
|
||||||
{% for javascript in config.additional_javascript|merge(config.additional_javascript_defer) %}<script type="text/javascript" src="{{ config.additional_javascript_url }}{{ javascript }}"></script>{% endfor %}
|
{% for javascript in config.additional_javascript|merge(config.additional_javascript_defer) %}<script type="text/javascript" src="{{ config.additional_javascript_url }}{{ javascript }}?v={{ config.resource_version }}"></script>{% endfor %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% for javascript in config.additional_javascript %}<script type="text/javascript" src="{{ config.additional_javascript_url }}{{ javascript }}"></script>{% endfor %}
|
{% for javascript in config.additional_javascript %}<script type="text/javascript" src="{{ config.additional_javascript_url }}{{ javascript }}?v={{ config.resource_version }}"></script>{% endfor %}
|
||||||
{% for javascript in config.additional_javascript_defer %}<script defer type="text/javascript" src="{{ config.additional_javascript_url }}{{ javascript }}"></script>{% endfor %}
|
{% for javascript in config.additional_javascript_defer %}<script defer type="text/javascript" src="{{ config.additional_javascript_url }}{{ javascript }}?v={{ config.resource_version }}"></script>{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if mod %}
|
{% if mod %}
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
<script src='main.js?v={{ config.resource_version }}'></script>
|
<script src='main.js?v={{ config.resource_version }}'></script>
|
||||||
<script src='js/jquery.min.js'></script>
|
<script src='js/jquery.min.js?v={{ config.resource_version }}'></script>
|
||||||
<script src='js/style-select.js'></script>
|
<script src='js/style-select.js?v={{ config.resource_version }}'></script>
|
||||||
<script src='js/mobile-style.js'></script>
|
<script src='js/mobile-style.js?v={{ config.resource_version }}'></script>
|
||||||
<script src='js/strftime.min.js'></script>
|
<script src='js/strftime.min.js?v={{ config.resource_version }}'></script>
|
||||||
<script src='js/longtable/longtable.js'></script>
|
<script src='js/longtable/longtable.js?v={{ config.resource_version }}'></script>
|
||||||
<script src='js/mod/ban-list.js'></script>
|
<script src='js/mod/ban-list.js?v={{ config.resource_version }}'></script>
|
||||||
<link rel='stylesheet' href='stylesheets/longtable/longtable.css'>
|
<link rel='stylesheet' href='stylesheets/longtable/longtable.css'>
|
||||||
<link rel='stylesheet' href='stylesheets/mod/ban-list.css'>
|
<link rel='stylesheet' href='stylesheets/mod/ban-list.css'>
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
{% if token_json %}
|
{% if token_json %}
|
||||||
<script>$(function(){ banlist_init("{{ token_json }}", {{ boards }}); });</script>
|
<script>$(function(){ banlist_init("{{ token_json }}", {{ boards }}); });</script>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<script type="text/javascript" src="js/jquery.min.js"></script>
|
<script type="text/javascript" src="js/jquery.min.js?v={{ config.resource_version }}"></script>
|
||||||
<div style="text-align:center">
|
<div style="text-align:center">
|
||||||
<p class="unimportant">
|
<p class="unimportant">
|
||||||
{% if board %}
|
{% if board %}
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
<table>
|
<table>
|
||||||
<tr><th>{% trans %}URL{% endtrans %}</th><th>{% trans %}Title{% endtrans %}</th></tr>
|
<tr><th>{% trans %}URL{% endtrans %}</th><th>{% trans %}Title{% endtrans %}</th></tr>
|
||||||
<tr><td><input type="text" name="page"></td><td><input type="text" name="title"></td>
|
<tr><td><input type="text" name="page"></td><td><input type="text" name="title"></td>
|
||||||
</table>
|
</table>
|
||||||
<input type="submit" value="{% trans %}Create{% endtrans %}">
|
<input type="submit" value="{% trans %}Create{% endtrans %}">
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<script src="{{ config.additional_javascript_url }}js/mod/recent_posts.js"></script>
|
<script src="{{ config.additional_javascript_url }}js/mod/recent_posts.js?v={{ config.resource_version }}"></script>
|
||||||
<script src="{{ config.additional_javascript_url }}js/mod/recent-posts-auto-reload.js"></script>
|
<script src="{{ config.additional_javascript_url }}js/mod/recent-posts-auto-reload.js?v={{ config.resource_version }}"></script>
|
||||||
{% if not posts %}
|
{% if not posts %}
|
||||||
<p style="text-align:center" class="unimportant">({% trans 'There are no active posts.' %})</p>
|
<p style="text-align:center" class="unimportant">({% trans 'There are no active posts.' %})</p>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
|
@ -11,8 +11,8 @@
|
||||||
</script>
|
</script>
|
||||||
<title>{{ settings.title }}</title>
|
<title>{{ settings.title }}</title>
|
||||||
{% include 'header.html' %}
|
{% include 'header.html' %}
|
||||||
<script src='/js/moment.min.js'></script>
|
<script src='/js/moment.min.js?v={{ config.resource_version }}'></script>
|
||||||
<script src='/js/fullcalendar.min.js'></script>
|
<script src='/js/fullcalendar.min.js?v={{ config.resource_version }}'></script>
|
||||||
</head>
|
</head>
|
||||||
<body class="8chan vichan {% if mod %}is-moderator{% else %}is-not-moderator{% endif %}" data-stylesheet="{% if config.default_stylesheet.1 != '' %}{{ config.default_stylesheet.1 }}{% else %}default{% endif %}">
|
<body class="8chan vichan {% if mod %}is-moderator{% else %}is-not-moderator{% endif %}" data-stylesheet="{% if config.default_stylesheet.1 != '' %}{{ config.default_stylesheet.1 }}{% else %}default{% endif %}">
|
||||||
<div class="bar top">
|
<div class="bar top">
|
||||||
|
@ -25,11 +25,11 @@
|
||||||
<div class="ban">
|
<div class="ban">
|
||||||
<div id='calendar'></div>
|
<div id='calendar'></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr/>
|
<hr/>
|
||||||
<footer>
|
<footer>
|
||||||
<p class="unimportant" style="margin-top:20px;text-align:center;">- <a href="https://github.com/savetheinternet/Tinyboard">Tinyboard</a> +
|
<p class="unimportant" style="margin-top:20px;text-align:center;">- <a href="https://github.com/savetheinternet/Tinyboard">Tinyboard</a> +
|
||||||
<a href='https://github.com/vichan-devel/vichan'>vichan</a> +
|
<a href='https://github.com/vichan-devel/vichan'>vichan</a> +
|
||||||
<a href='https://github.com/lainchan/lainchan'>lainchan</a> {{ config.version }} -
|
<a href='https://github.com/lainchan/lainchan'>lainchan</a> {{ config.version }} -
|
||||||
<br><a href="https://github.com/savetheinternet/Tinyboard">Tinyboard</a> Copyright © 2010-2014 Tinyboard Development Group
|
<br><a href="https://github.com/savetheinternet/Tinyboard">Tinyboard</a> Copyright © 2010-2014 Tinyboard Development Group
|
||||||
<br><a href="https://github.com/vichan-devel/vichan">vichan</a> Copyright © 2012-2016 vichan-devel
|
<br><a href="https://github.com/vichan-devel/vichan">vichan</a> Copyright © 2012-2016 vichan-devel
|
||||||
|
@ -56,7 +56,7 @@
|
||||||
event.allDay = false;
|
event.allDay = false;
|
||||||
}
|
}
|
||||||
element.find('.fc-title').append("<br/>" + event.description);
|
element.find('.fc-title').append("<br/>" + event.description);
|
||||||
element.css('background-color',event.color);
|
element.css('background-color',event.color);
|
||||||
},
|
},
|
||||||
selectable: true,
|
selectable: true,
|
||||||
selectHelper: true,
|
selectHelper: true,
|
||||||
|
@ -102,7 +102,7 @@
|
||||||
url: url,
|
url: url,
|
||||||
color:color,
|
color:color,
|
||||||
},
|
},
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
calendar.fullCalendar('unselect');
|
calendar.fullCalendar('unselect');
|
||||||
|
@ -138,7 +138,7 @@
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
eventClick: function(event) {
|
eventClick: function(event) {
|
||||||
var decision = confirm("Do you really want to do that?");
|
var decision = confirm("Do you really want to do that?");
|
||||||
if (decision) {
|
if (decision) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
{
|
{
|
||||||
error('thread_limit must be an integer above 1.', true);
|
error('thread_limit must be an integer above 1.', true);
|
||||||
}
|
}
|
||||||
if (!is_array($overboard['exclude']))
|
if (!is_array($overboard['exclude']))
|
||||||
{
|
{
|
||||||
error('Exclude list must be array of strings.', true);
|
error('Exclude list must be array of strings.', true);
|
||||||
}
|
}
|
||||||
|
@ -62,7 +62,7 @@
|
||||||
error('Exclude list must be array of strings.', true);
|
error('Exclude list must be array of strings.', true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $settings;
|
return $settings;
|
||||||
|
@ -199,7 +199,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
$html .= '<script>var ukko_overflow = ' . json_encode($overflow) . '</script>';
|
$html .= '<script>var ukko_overflow = ' . json_encode($overflow) . '</script>';
|
||||||
$html .= '<script type="text/javascript" src="/'.$overboard['uri'].'/overboard.js"></script>';
|
$html .= '<script type="text/javascript" src="/'.$overboard['uri'].'/overboard.js?=' . $config['resource_version'] . '"></script>';
|
||||||
|
|
||||||
return Element('index.html', array(
|
return Element('index.html', array(
|
||||||
'config' => $config,
|
'config' => $config,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue