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

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

-

+ {% csrf_token %}
- +
@@ -27,19 +29,19 @@

Very fuzzy data, based on past tournaments. The more the deck was played in tournaments, the more accurate this is.

- + {% load humanize %} {% for avg, label, decks in ranking %} - + @@ -61,10 +63,10 @@ {% for t in tournaments %} - + @@ -74,3 +76,26 @@ {% endblock %} + +{% block jumbotron_end %} + +{% endblock %}
Archetype ID Average placement Example decks
{{ label }} {{ avg|ordinal }}
{{ 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 %}