added CSS variables and exporting pages

This commit is contained in:
Yusur 2022-11-30 18:07:59 +01:00
parent eef7f001d5
commit 9e8e6e0eec
8 changed files with 167 additions and 55 deletions

View file

@ -43,6 +43,9 @@
<div id="editing-area">
<div class="pre-text-input">
<p>This editor is using Markdown for text formatting (e.g. bold, italic, headers and tables). <a href="https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet" rel="nofollow">More info on Markdown</a>.</p>
{% if math_version %}
<p>Math with KaTeX is <mark>enabled</mark>. <a href="https://katex.org/docs/supported.html">KaTeX guide</a></p>
{% endif %}
</div>
<div class="over-text-input"></div>
<textarea name="text" class="text-input">{{ pl_text }}</textarea>

View file

@ -10,9 +10,13 @@
<p>In order to add page to export list, please enter exact title, /url, #tag or +id. Entering a tag will add all pages with that tag to list. Each page or tag is separated by a newline.</p>
<form method="POST">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
<div>
<textarea style="height:20em;width:100%" name="export-list" placeholder="Title, /url, #tag, or +id, newline-separated"></textarea>
</div>
<div>
<input type="checkbox" name="history" value="1"><label>Include history (file can be very large!)</label>
</div>
<div>
<input type="submit" value="Download">
</div>

View file

@ -0,0 +1,9 @@
{% extends "base.html" %}
{% block title %}Import pages - {{ app_name }}{% endblock %}
{% block content %}
<h1>Import pages</h1>
<p>Importing pages can be done by users with Admin permissions only.</p>
{% endblock %}

View file

@ -29,5 +29,5 @@
</div>
</form>
<p>{{ T('no-account-sign-up') }}</p>
<p>{{ T('no-account-sign-up') }} <a href="/accounts/signup" rel="nofollow">{{ T("sign-up") }}</a></p>
{% endblock %}

View file

@ -6,9 +6,10 @@
<h1>Statistics</h1>
<ul>
<li>Number of pages: <strong>{{ notes_count }}</strong></li>
<li>Number of pages with URL set: <strong>{{ notes_with_url }}</strong></li>
<li>Number of revisions: <strong>{{ revision_count }}</strong></li>
<li>Average revisions per page: <strong>{{ (revision_count / notes_count)|round(2) }}</strong></li>
<li>{{ T("notes-count") }}: <strong>{{ notes_count }}</strong></li>
<li>{{ T("notes-count-with-url") }}: <strong>{{ notes_with_url }}</strong></li>
<li>{{ T("revision-count") }}: <strong>{{ revision_count }}</strong></li>
<li>{{ T("revision-count-per-page") }}: <strong>{{ (revision_count / notes_count)|round(2) }}</strong></li>
<li>{{ T('users-count') }}: <strong>{{ users_count }}</strong></li>
</ul>
{% endblock %}