Moved common JS and CSS to separate file.
This commit is contained in:
parent
584546a8f7
commit
2d6f9d0f1b
36 changed files with 204 additions and 564 deletions
templates
|
@ -7,7 +7,7 @@
|
|||
{% block html_head %}
|
||||
<meta name="description" content="{{ error_blerb }}">
|
||||
<link href="/vendor/fontawesome/css/all.min.css" type="text/css" rel="stylesheet">
|
||||
<link href="{{ asset('errors.css') }}" rel="stylesheet">
|
||||
<link href="/errors.css" rel="stylesheet">
|
||||
<style>
|
||||
:root {
|
||||
--error-colour: {{ error_colour }};
|
||||
|
|
|
@ -51,10 +51,10 @@
|
|||
|
||||
<script>
|
||||
window.addEventListener('load', function() {
|
||||
const ubExpires = $i('ub_expires'),
|
||||
ubExpiresCustom = $i('ub_expires_custom'),
|
||||
ubSeverity = $i('ub_severity'),
|
||||
ubSeverityDisplay = $i('ub_severity_display');
|
||||
const ubExpires = $id('ub_expires'),
|
||||
ubExpiresCustom = $id('ub_expires_custom'),
|
||||
ubSeverity = $id('ub_severity'),
|
||||
ubSeverityDisplay = $id('ub_severity_display');
|
||||
|
||||
const updateExpires = function() {
|
||||
ubExpiresCustom.parentNode.classList.toggle('manage__ban__duration__value__custom--hidden', ubExpires.value != '-2');
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
{% block html_head %}
|
||||
{% include '_layout/meta.twig' %}
|
||||
<link href="/vendor/fontawesome/css/all.min.css" type="text/css" rel="stylesheet">
|
||||
<link href="{{ asset('common.css') }}" type="text/css" rel="stylesheet">
|
||||
<link href="{{ asset('misuzu.css') }}" type="text/css" rel="stylesheet">
|
||||
{% if site_background is defined %}
|
||||
<style>
|
||||
|
@ -62,5 +63,6 @@
|
|||
{% endblock %}
|
||||
|
||||
<script src="/vendor/highlightjs/highlight.min.js" type="text/javascript"></script>
|
||||
<script src="{{ asset('common.js') }}" type="text/javascript"></script>
|
||||
<script src="{{ asset('misuzu.js') }}" type="text/javascript"></script>
|
||||
{% endblock %}
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
{% set html_title = (title is defined ? (title ~ ' :: ') : '') ~ globals.site_info.name %}
|
||||
|
||||
{% block html_head %}
|
||||
<link href="{{ asset('common.css') }}" rel="stylesheet">
|
||||
<link href="{{ asset('oauth2.css') }}" rel="stylesheet">
|
||||
{% endblock %}
|
||||
|
||||
|
@ -35,5 +36,6 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="{{ asset('common.js') }}"></script>
|
||||
<script src="{{ asset('oauth2.js') }}"></script>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue