X-Git-Url: https://git.yukkurigames.com/?p=mlpccg-meta.git;a=blobdiff_plain;f=meta%2Ftemplates%2Findex.html;h=20e0830e575757b8c1bb6c55704e9e95e80da042;hp=c307f261fcb53b8493dc6b5d08a500e684b33ae8;hb=88d04533bca919d52194a1c3c0e6e982c926a75f;hpb=247faccd70eea33b856c3aac471be3d411b8be80 diff --git a/meta/templates/index.html b/meta/templates/index.html index c307f26..20e0830 100644 --- a/meta/templates/index.html +++ b/meta/templates/index.html @@ -1,5 +1,6 @@ {% extends "base.html" %} {% load meta_extras %} +{% load url from future %} {% block jumbotron %}
@@ -8,11 +9,11 @@

Curious how decks like yours have performed in tournaments?
Paste your ponyhead.com URL here and find out!

-

+ {% csrf_token %}
- +
@@ -40,7 +41,7 @@ @@ -62,10 +63,10 @@ {% for t in tournaments %} {{ t.tournament.date }} - {{ t.tournament.name }} + {{ t.tournament.name }} - {% for d in t.decklists|slice:":8" %} - {{ d.name }} ({{ d.description }})
+ {% for placement, d in t.decklists|slice:":8" %} + {{ placement|ordinal }} {{ d.name }} ({{ d.description }})
{% endfor %} @@ -77,20 +78,24 @@ {% endblock %} {% block jumbotron_end %} + {% endblock %}