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