42 lines
1.3 KiB
HTML
42 lines
1.3 KiB
HTML
{% extends "page_1col.html" %}
|
|
{% import 'macros.html' as macros with context %}
|
|
{% block title %}Home | Amanuensis{% endblock %}
|
|
{% block header %}<h2>Amanuensis - Home</h2>{% endblock %}
|
|
|
|
{% block main %}
|
|
<h1>Welcome to Amanuensis!</h1>
|
|
<p>Amanuensis is a hub for playing Lexicon, the encyclopedia RPG. Log in to access your Lexicon games. If you do not have an account, contact the administrator.</p>
|
|
|
|
{% for message in get_flashed_messages() %}
|
|
<span style="color:#ff0000">{{ message }}</span><br>
|
|
{% endfor %}
|
|
|
|
{% if current_user.is_authenticated %}
|
|
<h2>Your games</h2>
|
|
{% if user_lexicons %}
|
|
{% for lexicon in user_lexicons %}
|
|
{{ macros.dashboard_lexicon_item(lexicon) }}
|
|
{% endfor %}
|
|
{% else %}
|
|
<p>You haven't joined a game yet.</p>
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
<h2>Public games</h2>
|
|
{% if public_lexicons %}
|
|
{% for lexicon in public_lexicons %}
|
|
{{ macros.dashboard_lexicon_item(lexicon) }}
|
|
{% endfor %}
|
|
{% else %}
|
|
<p>No public games available.</p>
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
{% set template_content_blocks = [self.main()] %}
|
|
|
|
{% if current_user.is_admin %}
|
|
{% block admin_dash %}
|
|
<a href="{{ url_for('home.admin') }}" style="display:block; text-align:center;">Admin dashboard</a>
|
|
{% endblock %}
|
|
{% set template_content_blocks = [self.admin_dash()] + template_content_blocks %}
|
|
{% endif %} |