Browse Source

Create a listing for campaigns

master
Graham Northup 3 years ago
parent
commit
5f53c480d6
Signed by untrusted user: grissess GPG Key ID: 5D000E6F539376FB
  1. 12
      app/new_content.txt
  2. 5
      app/templates/campaigns.html
  3. 2
      app/templates/macros.html

12
app/new_content.txt

@ -1,10 +1,10 @@
Items/totem_of_age_reversal.txt
Items/ring_of_unring.txt
Feats/tcsa.txt
Spells/tiamats_claw.txt
Items/goat_counter.txt
Monsters/zombie_crawler.txt
Spells/silent_majority.txt
Spells/cannonball.txt
Items/ackermannacles.txt
Items/drink_warmer.txt
Spells/waterbolt.txt
Items/die_of_augury.txt
Items/focus_of_the_blood_mage.txt
Feats/draconic_constitution.txt
Feats/fearsome_violence.txt
Feats/hover.txt

5
app/templates/campaigns.html

@ -1,6 +1,11 @@
{% extends "base.html" %}
{% block content %}
<h2><a href="/rules">Rules</a> &middot; Campaigns</h2>
<ul class="headlist">
{% for ca in rules.get_sorted_campaigns() %}
<li><a href="#{{ca.name}}">{{ca.name}}</a> {% if not loop.last %} &middot; {% endif %}</li>
{% endfor %}
</ul>
{% for ca in rules.get_sorted_campaigns() %}
{{ macros.campaign(ca, rules) }}
{% endfor %}

2
app/templates/macros.html

@ -37,7 +37,7 @@
{%- endmacro %}
{% macro campaign(ca, rules) -%}
<div class="campaign">
<div class="campaign" id="{{ca.name}}">
<h3>{{ca.name}}</h3>
<div class="rulesContainer">
{% for kind in rules.get_kinds() %}

Loading…
Cancel
Save