X-Git-Url: https://git.yukkurigames.com/?p=mlpccg-meta.git;a=blobdiff_plain;f=meta%2Ftemplates%2Findex.html;h=b867d347b51eefc5f5861ede26494ea1030348fa;hp=c307f261fcb53b8493dc6b5d08a500e684b33ae8;hb=66437f8e5437a4ecd5c34a49ee86d58e80b72458;hpb=247faccd70eea33b856c3aac471be3d411b8be80 diff --git a/meta/templates/index.html b/meta/templates/index.html index c307f26..b867d34 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 %}
- +
@@ -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 %}