mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 05:54:19 +01:00
* Separate out admin theme from core more to fix #1200
This commit is contained in:
1
CTFd/themes/admin/assets/css/codemirror.scss
Normal file
1
CTFd/themes/admin/assets/css/codemirror.scss
Normal file
@@ -0,0 +1 @@
|
||||
@import "~codemirror/lib/codemirror.css";
|
||||
4
CTFd/themes/admin/static/css/codemirror.dev.css
Normal file
4
CTFd/themes/admin/static/css/codemirror.dev.css
Normal file
File diff suppressed because one or more lines are too long
1
CTFd/themes/admin/static/css/codemirror.min.css
vendored
Normal file
1
CTFd/themes/admin/static/css/codemirror.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -118,6 +118,6 @@
|
||||
var CHALLENGE_ID = {{ challenge.id }};
|
||||
var CHALLENGE_NAME = {{ challenge.name | tojson }};
|
||||
</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>
|
||||
{% endblock %}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% extends "admin/base.html" %}
|
||||
|
||||
{% 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 %}
|
||||
|
||||
{% 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">
|
||||
<div class="form-group">
|
||||
<label for="name">User Name</label>
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
{% endblock %}
|
||||
|
||||
{% 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='core', path='js/graphs.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='admin', path='js/graphs.js') }}"></script>
|
||||
{% endblock %}
|
||||
|
||||
{% block entrypoint %}
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
{% endblock %}
|
||||
|
||||
{% 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='core', path='js/graphs.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='admin', path='js/graphs.js') }}"></script>
|
||||
{% endblock %}
|
||||
|
||||
{% block entrypoint %}
|
||||
|
||||
@@ -31,6 +31,7 @@ const roots = {
|
||||
'css': {
|
||||
'admin': 'assets/css/admin.scss',
|
||||
'challenge-board': 'assets/css/challenge-board.scss',
|
||||
'codemirror': 'assets/css/codemirror.scss',
|
||||
},
|
||||
'js': {
|
||||
'pages/main': 'assets/js/pages/main.js',
|
||||
|
||||
Reference in New Issue
Block a user