initial commit (it has come late tho 🙁)
This commit is contained in:
commit
c2bf966dac
27 changed files with 1618 additions and 0 deletions
33
templates/view.html
Normal file
33
templates/view.html
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}{{ p.title }} - {{ app_name }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>{{ p.title }}</h1>
|
||||
|
||||
<div class="jump-to-actions"><a href="#page-actions">{{ T('jump-to-actions') }}</a></div>
|
||||
|
||||
{% block history_nav %}{% endblock %}
|
||||
|
||||
<div class="inner-content">
|
||||
{{ rev.html()|safe }}
|
||||
</div>
|
||||
|
||||
{% if p.tags %}
|
||||
<div class="page-tags">
|
||||
<p>{{ T('tags') }}:</p>
|
||||
<ul>
|
||||
{% for tag in p.tags %}
|
||||
<li><a href="/tags/{{ tag.name }}/">#{{ tag.name }}</a> <span class="tag-count">({{ tag.popularity() }})</span></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block actions %}
|
||||
<a href="/edit/{{ p.id }}/">{{ T('action-edit') }}</a> -
|
||||
<a href="/history/{{ p.id }}/">{{ T('action-history') }}</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