moved config to a json, which makes adding more variables easier, but perhaps otherwise adds complexity
This commit is contained in:
@@ -4,16 +4,17 @@
|
||||
<title>{{ title }}</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta content="utf-8" http-equiv="encoding">
|
||||
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
|
||||
<link rel=stylesheet href="{{ url_for('static', filename='theme.css') }}">
|
||||
{%- if config.server_name -%}
|
||||
<link rel=stylesheet href="{{ url_for('static', filename='user.css') }}">
|
||||
{%- if config.user_css -%}
|
||||
<link rel=stylesheet href="{{ url_for('static', filename=config.user_css) }}">
|
||||
{%- endif -%}
|
||||
</head>
|
||||
<body>
|
||||
<h1>{{ title }}</h1>
|
||||
<p>
|
||||
<a href="{{ url_for('admin') }}">Admin panel</a><span> | </span>
|
||||
<a href="{{ url_for('index') }}">Home page</a>
|
||||
<span> « </span><a href="{{ url_for('index') }}">Forum Home</a>
|
||||
<span> | </span><a href="{{ url_for('admin') }}">Admin panel</a>
|
||||
</p>
|
||||
{%- for category, msg in get_flashed_messages(True) -%}
|
||||
<p class="flash {{ category }}">{{ msg }}</p>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
</tr>
|
||||
{%- for id, name, join_date, role, banned_until in users -%}
|
||||
<tr>
|
||||
<td>{{ id }}</td>
|
||||
<td><a href="{{ url_for('user_info', user_id = id) }}">{{ id }}</a></td>
|
||||
<td>{{ name }}</td>
|
||||
<td>{{ format_time(join_date) }}</td>
|
||||
<td>
|
||||
@@ -61,7 +61,7 @@
|
||||
</tr>
|
||||
{% for id, name, description, _, _, _ in forums %}
|
||||
<tr>
|
||||
<td>{{ id }}</td>
|
||||
<td><a href="{{ url_for('forum', forum_id = id) }}">{{ id }}</a></td>
|
||||
<td>
|
||||
<form method=post action="forum/{{ id }}/edit/name/">
|
||||
<input type=text name=name value="{{ name }}"</input>
|
||||
@@ -114,6 +114,14 @@
|
||||
<td>Login required</td>
|
||||
<td><input name=login_required type=checkbox {{ 'checked' if config.login_required else '' }}></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Number of threads per page</td>
|
||||
<td><input type=number name=threads_per_page value="{{ config.threads_per_page }}"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>User defined CSS file in static/ folder</td>
|
||||
<td><input type=text name=user_css value="{{ config.user_css }}"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type=submit value=Update>
|
||||
</form>
|
||||
@@ -129,8 +137,6 @@
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- -->
|
||||
<h2 class=admin_h2>Query</h2>
|
||||
<p>⚠ Only use queries if you know what you're doing ⚠</p>
|
||||
|
||||
Reference in New Issue
Block a user