1 {% extends
"base.html" %}
3 {% load url from future %}
6 <div class=
"jumbotron">
7 <div class=
"container">
8 <h1>How good is your deck?
</h1>
9 <p>Curious how decks like yours have performed in tournaments?
<br/>
10 Paste your
<a href=
"http://ponyhead.com/deckbuilder">ponyhead.com
</a> URL here and find out!
</p>
12 <form action=
"{% url 'meta.views.rate' %}" method=
"post" class=
"form-inline" role=
"form">
14 <div class=
"form-group">
15 <label class=
"sr-only" for=
"ponyheadURL">ponyhead decklist url
</label>
16 <input type=
"url" name=
"url" class=
"form-control input-lg" id=
"ponyheadURL" placeholder=
"Deck URL"/>
17 <button type=
"submit" class=
"btn btn-lg btn-default btn-primary">Tell me!
</button>
27 <div class=
"col-xs-12">
28 <h2>Deck archetypes
</h2>
29 <p>Very fuzzy data, based on past tournaments. The more the deck was played in tournaments, the more accurate this is.
</p>
32 <!-- <th>Archetype ID</th> -->
33 <th>Average placement
</th>
34 <th>Example decks
</th>
37 {% for avg, label, decks in ranking %}
39 <!-- <td>{{ label }}</td> -->
40 <td>{{ avg|ordinal }}
</td>
42 <ul class=
"list-inline">
44 <li><a href=
"{{ d.ponyhead_link }}">{{ d.name }}
</a></li>
54 <div class=
"col-xs-12">
63 {% for t in tournaments %}
65 <td>{{ t.tournament.date }}
</td>
66 <td><a href=
"{% url 'meta.views.tournaments_detail' t.tournament.id %}">{{ t.tournament.name }}
</a></td>
68 {% for placement, d in t.decklists|slice:
":8" %}
69 {{ placement|ordinal }}
<a href=
"{{ d.ponyhead_link }}">{{ d.name }} ({{ d.description }})
</a><br/>
80 {% block jumbotron_end %}
81 <div class=
"jumbotron">
82 <div class=
"container">
83 <h1>Not on the list?
</h1>
84 <p> Paste your
<a href=
"http://ponyhead.com/deckbuilder">ponyhead.com
</a> URL here and help make this site better!
</p>
86 <form action=
"{% url 'meta.views.rate' %}" method=
"post" class=
"form-inline" role=
"form">
88 <div class=
"form-group">
89 <label class=
"sr-only" for=
"ponyheadURL">ponyhead decklist url
</label>
90 <input type=
"url" name=
"url" class=
"form-control input-lg" id=
"ponyheadURL" placeholder=
"Deck URL"/>
91 <button type=
"submit" class=
"btn btn-lg btn-default btn-primary">Add me!
</button>