50 lines
1.7 KiB
Django/Jinja
50 lines
1.7 KiB
Django/Jinja
{% extends "page_2col.jinja" %}
|
|
{% set lexicon_title = g.lexicon.full_title %}
|
|
|
|
{% block header %}
|
|
<h2>{{ lexicon_title }}</h2>
|
|
<p><i>{{ g.lexicon.prompt }}</i></p>
|
|
{% endblock %}
|
|
|
|
{% block sb_logo %}{% endblock %}
|
|
{% block sb_characters %}<a
|
|
{% if current_page == "characters" %}class="current-page"
|
|
{% else %}href="{{ url_for('lexicon.characters.list', name=g.lexicon.name) }}"
|
|
{% endif %}>Characters</a>{% endblock %}
|
|
{% block sb_contents %}<a
|
|
{% if current_page == "contents" %}class="current-page"
|
|
{% else %}href="{{ url_for('lexicon.contents', name=g.lexicon.name) }}"
|
|
{% endif %}>Contents</a>{% endblock %}
|
|
{% block sb_rules %}<a
|
|
{% if current_page == "rules" %}class="current-page"
|
|
{% else %}href="{{ url_for('lexicon.rules', name=g.lexicon.name) }}"
|
|
{% endif %}>Rules</a>{% endblock %}
|
|
{% block sb_session %}<a
|
|
{% if current_page == "session" %}class="current-page"
|
|
{% else %}href="#{#{ url_for('session.session', name=g.lexicon.name) }#}"
|
|
{% endif %}>Session</a>{% endblock %}
|
|
{% block sb_stats %}<a
|
|
{% if current_page == "statistics" %}class="current-page"
|
|
{% else %}href="{{ url_for('lexicon.stats', name=g.lexicon.name) }}"
|
|
{% endif %}>Statistics</a>{% endblock %}
|
|
|
|
{% if current_user.is_authenticated and (
|
|
current_user.is_site_admin
|
|
or memq.try_from_ids(g.db, current_user.id, g.lexicon.id)
|
|
) %}
|
|
{# self.sb_logo(), #}
|
|
{% set template_sidebar_rows = [
|
|
self.sb_characters(),
|
|
self.sb_contents(),
|
|
self.sb_rules(),
|
|
self.sb_session(),
|
|
self.sb_stats()] %}
|
|
{% else %}
|
|
{# self.sb_logo(), #}
|
|
{% set template_sidebar_rows = [
|
|
self.sb_characters(),
|
|
self.sb_contents(),
|
|
self.sb_rules(),
|
|
self.sb_stats()] %}
|
|
{% endif %}
|