mirror of https://github.com/JohnHammond/CTFd.git
* Separate out admin theme from core more to fix #1200bulk-clear-sessions
parent
b8d0f80d01
commit
d5128c2fa4
|
@ -0,0 +1 @@
|
||||||
|
@import "~codemirror/lib/codemirror.css";
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -118,6 +118,6 @@
|
||||||
var CHALLENGE_ID = {{ challenge.id }};
|
var CHALLENGE_ID = {{ challenge.id }};
|
||||||
var CHALLENGE_NAME = {{ challenge.name | tojson }};
|
var CHALLENGE_NAME = {{ challenge.name | tojson }};
|
||||||
</script>
|
</script>
|
||||||
<script defer src="{{ url_for('views.themes', theme='core', path='js/plotly.bundle.js') }}"></script>
|
<script defer src="{{ url_for('views.themes', theme='admin', path='js/plotly.bundle.js') }}"></script>
|
||||||
<script defer src="{{ request.script_root }}{{ update_script }}"></script>
|
<script defer src="{{ request.script_root }}{{ update_script }}"></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{% extends "admin/base.html" %}
|
{% extends "admin/base.html" %}
|
||||||
|
|
||||||
{% block stylesheets %}
|
{% block stylesheets %}
|
||||||
<link rel="stylesheet" type="text/css" href="{{ url_for('views.themes', theme='core', path='css/codemirror.css') }}">
|
<link rel="stylesheet" type="text/css" href="{{ url_for('views.themes', theme='admin', path='css/codemirror.css') }}">
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<form id="user-info-create-form">
|
<form id="user-info-create-form" method="POST">
|
||||||
<input type="hidden" name="id">
|
<input type="hidden" name="id">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="name">User Name</label>
|
<label for="name">User Name</label>
|
||||||
|
|
|
@ -22,8 +22,8 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
<script defer src="{{ url_for('views.themes', theme='core', path='js/plotly.bundle.js') }}"></script>
|
<script defer src="{{ url_for('views.themes', theme='admin', path='js/plotly.bundle.js') }}"></script>
|
||||||
<script defer src="{{ url_for('views.themes', theme='core', path='js/graphs.js') }}"></script>
|
<script defer src="{{ url_for('views.themes', theme='admin', path='js/graphs.js') }}"></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block entrypoint %}
|
{% block entrypoint %}
|
||||||
|
|
|
@ -22,8 +22,8 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
<script defer src="{{ url_for('views.themes', theme='core', path='js/plotly.bundle.js') }}"></script>
|
<script defer src="{{ url_for('views.themes', theme='admin', path='js/plotly.bundle.js') }}"></script>
|
||||||
<script defer src="{{ url_for('views.themes', theme='core', path='js/graphs.js') }}"></script>
|
<script defer src="{{ url_for('views.themes', theme='admin', path='js/graphs.js') }}"></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block entrypoint %}
|
{% block entrypoint %}
|
||||||
|
|
|
@ -31,6 +31,7 @@ const roots = {
|
||||||
'css': {
|
'css': {
|
||||||
'admin': 'assets/css/admin.scss',
|
'admin': 'assets/css/admin.scss',
|
||||||
'challenge-board': 'assets/css/challenge-board.scss',
|
'challenge-board': 'assets/css/challenge-board.scss',
|
||||||
|
'codemirror': 'assets/css/codemirror.scss',
|
||||||
},
|
},
|
||||||
'js': {
|
'js': {
|
||||||
'pages/main': 'assets/js/pages/main.js',
|
'pages/main': 'assets/js/pages/main.js',
|
||||||
|
|
Loading…
Reference in New Issue