forked from jogordo/DnD_Archive
Browse Source
Make item/spell code generic
Make item/spell code generic
Includes: - Adding support for arbitrary headers in any order (order is preserved in rendering right now) - Adding headers on anything that can be rendered This significantly reduces handling code from the "fixed five for spells" case. The magic items of Konis are so updated, partly to test.marches
38 changed files with 170 additions and 62 deletions
-
3Items/antimagic_artifact.txt
-
3Items/box_of_duplication.txt
-
3Items/bracers_of_dabbing.txt
-
3Items/chronomancers_ring.txt
-
3Items/diplomancers_ring.txt
-
3Items/divine_wand.txt
-
3Items/evertangling_rope.txt
-
3Items/flask_of_smells.txt
-
3Items/greater_box_of_duplication.txt
-
3Items/greater_chronomancers_ring.txt
-
3Items/leaded_restraint.txt
-
3Items/necromancers_ring.txt
-
3Items/orb_of_magic_concentration.txt
-
3Items/potion.txt
-
3Items/ring_of_greater_ring.txt
-
3Items/ring_of_greater_stamina.txt
-
3Items/ring_of_greater_true_sight.txt
-
3Items/ring_of_greatest_ring.txt
-
3Items/ring_of_lesser_ring.txt
-
3Items/ring_of_magic_detection.txt
-
3Items/ring_of_ring.txt
-
3Items/ring_of_stamina.txt
-
3Items/ring_of_true_sight.txt
-
3Items/ring_of_vorpal.txt
-
3Items/scrying_artifact.txt
-
3Items/staff_of_greater_telekinesis.txt
-
3Items/staff_of_greater_teleportation.txt
-
3Items/staff_of_telekinesis.txt
-
3Items/staff_of_teleportation.txt
-
3Items/story_stone.txt
-
3Items/sword_of_pay_to_win.txt
-
3Items/talking_stone.txt
-
3Items/teleport_artifact.txt
-
3Items/wand_of_deletion.txt
-
41app/items.py
-
19app/routes.py
-
37app/templates/index.html
-
33app/templates/listing.html
@ -0,0 +1,33 @@ |
|||
<html> |
|||
<head> |
|||
<meta charset='utf-8'> |
|||
<link rel="stylesheet" type="text/css" href="style.css"> |
|||
<link href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono|IBM+Plex+Sans|IBM+Plex+Sans+Condensed" rel="stylesheet"> |
|||
<title>{{ title }} - COSI D&D Archive</title> |
|||
</head> |
|||
<body class="content"> |
|||
<h1><a href="/">COSI D&D Archive</a></h1> |
|||
<h2>{{title}}</h2> |
|||
<ul class="headlist"> |
|||
{% for (name,_,_) in items %} |
|||
<li><a href="#{{name}}"> {{name}} </a> {% if not loop.last %} · {% endif %} </li> |
|||
{% endfor %} |
|||
</ul> |
|||
<table> |
|||
{% for (name,heads,text) in items %} |
|||
<tr> |
|||
<th class="topalign" id="{{name}}"> |
|||
{{name}} |
|||
<table class="props"> |
|||
{% for (key, value) in heads %} |
|||
<tr><th> {{key}} </th><td> {{value}} </td></tr> |
|||
{% endfor %} |
|||
</table> |
|||
</th> |
|||
<td class="freeform monospace"> {{text}} </td> |
|||
</tr> |
|||
{% endfor %} |
|||
</table> |
|||
<a class="topLink" href="#">Scroll to Top</a> |
|||
</body> |
|||
</html> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue