WIP: Cleanup
This commit is contained in:
parent
715224653d
commit
6ee942f8dc
37 changed files with 547 additions and 2591 deletions
|
|
@ -1,8 +1,37 @@
|
|||
{% extends "base.html" %}
|
||||
{% load bootstrap_icons %}
|
||||
{% block content %}
|
||||
<h3>Welcome to the character store</h3>
|
||||
<h3>Welcome to the character store</h3>
|
||||
|
||||
<p<This is a webapp for storing characters.<p>
|
||||
<p>This is a webapp for storing characters.</p>
|
||||
|
||||
{% if user.is_authenticated %}
|
||||
<h1>Welcome {% if user.first_name %}{{ user.first_name }}{% else %}{{ user.username }}{% endif %}</h1>
|
||||
|
||||
{% if user.campaign_set.all %}
|
||||
<h2>Campaigns you run</h2>
|
||||
<ul>
|
||||
{% for campaign in user.campaign_set.all %}
|
||||
<li><a href="{% url 'campaign' campaign.id %}">{{ campaign.name }}</a></li>
|
||||
{% endfor %}
|
||||
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
<h2>Characters you play</h2>
|
||||
<ul>
|
||||
{% for character in user.gurpscharacter_set.all %}
|
||||
<li>
|
||||
{{ character.name }} in {{ character.campaign }}
|
||||
<a href="{% url 'details' character.uuid %}" title="view {{ character.name }}">{% bs_icon 'eye' %}</a>
|
||||
<a href="{% url 'download' character.uuid %}" title="download {{ character.name }}">{% bs_icon 'download' %}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
||||
</ul>
|
||||
{% else %}
|
||||
<p>Please sign in to see your characters and campaigns</p>
|
||||
{% endif %}
|
||||
Add a character?
|
||||
|
||||
<p>Currently it works with GURPS, specifically characters created by GCS</p>
|
||||
{% endblock %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue