Version advance, remove upload table, add backlinks, add (optional) math with markdown_katex (experimental)
This commit is contained in:
parent
74c9bcf213
commit
78d938e266
4 changed files with 102 additions and 66 deletions
27
templates/backlinks.html
Normal file
27
templates/backlinks.html
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Pages linking to “{{ p.title }}” - {{ app_name }}{% endblock %}
|
||||
|
||||
{% block meta %}
|
||||
<meta name="robots" content="noindex,nofollow" />
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1 id="firstHeading">{{ p.title }}</h1>
|
||||
<div class="preview-subtitle">Backlinks</div>
|
||||
|
||||
{% if backlinks %}
|
||||
<ul>
|
||||
{% for op in backlinks %}
|
||||
<li><a href="{{ op.get_url() }}">
|
||||
{{ op.title }} (<strong>#{{ op.id }}</strong>)
|
||||
</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
<p class="placeholder">No other pages linking here. Is this page orphan?</p>
|
||||
{% endif %}
|
||||
|
||||
<p>Back to <a href="{{ p.get_url() }}">{{ p.title }}</a>.</p>
|
||||
{% endblock %}
|
||||
|
||||
|
|
@ -7,7 +7,8 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Page history for "{{ p.title }}"</h1>
|
||||
<h1 id="firstHeading">{{ p.title }}</h1>
|
||||
<div class="preview-subtitle">Page history</div>
|
||||
|
||||
<ul>
|
||||
{% for rev in history %}
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@
|
|||
{% block actions %}
|
||||
<a href="/edit/{{ p.id }}/">{{ T('action-edit') }}</a> -
|
||||
<a href="/history/{{ p.id }}/">{{ T('action-history') }}</a> -
|
||||
<a href="/backlinks/{{ p.id }}/">Backlinks</a> -
|
||||
{{ T('last-changed') }} <time datetime="{{ rev.pub_date.isoformat() }}">{{ rev.pub_date.strftime('%B %-d, %Y at %H:%M:%S') }}</time> -
|
||||
{{ T('page-id') }}: {{ p.id }}
|
||||
{% endblock %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue