Sith/core/templates/core/page_detail.jinja

27 lines
995 B
Plaintext
Raw Normal View History

2016-02-01 16:35:55 +00:00
{% extends "core/page.jinja" %}
{% block page %}
<h3>Page</h3>
<p><a href="{{ url('core:page_list') }}">Back to list</a></p>
2016-05-31 11:00:24 +00:00
{% if can_edit(page, user) %}
2016-02-01 16:35:55 +00:00
<p><a href="{{ url('core:page_edit', page_name=page.get_full_name()) }}">Edit</a></p>
{% endif %}
2016-05-31 11:00:24 +00:00
{% if can_edit_prop(page, user) %}
2016-02-01 16:35:55 +00:00
<p><a href="{{ url('core:page_prop', page_name=page.get_full_name()) }}">Prop</a></p>
{% endif %}
<p>You're seeing the page <strong>{{ page.get_display_name() }}</strong> -
<a href="{{ url('core:page_hist', page_name=page.get_full_name()) }}">History</a></p>
<hr>
2016-02-01 16:35:55 +00:00
{% if rev %}
<h4>This may not be the last update, you are seeing revision {{ rev.id }}!</h4>
<h3>{{ rev.title }}</h3>
<div class="page_content">{{ rev.content|markdown }}</div>
2016-02-01 16:35:55 +00:00
{% else %}
<h3>{{ page.revisions.last().title }}</h3>
<div class="page_content">{{ page.revisions.last().content|markdown }}</div>
2016-02-01 16:35:55 +00:00
{% endif %}
{% endblock %}