add new theme
[mlpccg-meta.git] / meta / templates / index.html
index c307f26..8b87867 100644 (file)
@@ -8,7 +8,7 @@
     <p>Curious how decks like yours have performed in tournaments?<br/>
       Paste your <a href="http://ponyhead.com/deckbuilder">ponyhead.com</a> URL here and find out!</p>
     <p>
     <p>Curious how decks like yours have performed in tournaments?<br/>
       Paste your <a href="http://ponyhead.com/deckbuilder">ponyhead.com</a> URL here and find out!</p>
     <p>
-      <form action="/meta/rate" method="post" class="form-inline" role="form">
+      <form action="{% url 'meta.views.rate' %}" method="post" class="form-inline" role="form">
         {% csrf_token %}
         <div class="form-group">
           <label class="sr-only" for="ponyheadURL">ponyhead decklist url</label>
         {% csrf_token %}
         <div class="form-group">
           <label class="sr-only" for="ponyheadURL">ponyhead decklist url</label>
       {% for t in tournaments %}
       <tr>
         <td>{{ t.tournament.date }}</td>
       {% for t in tournaments %}
       <tr>
         <td>{{ t.tournament.date }}</td>
-        <td><a href="/meta/tournaments/{{ t.tournament.id }}">{{ t.tournament.name }}</a></td>
+        <td><a href="{% url 'meta.views.tournaments_detail' t.tournament.id %}">{{ t.tournament.name }}</a></td>
         <td>
         <td>
-          {% for d in t.decklists|slice:":8" %}
-          <a href="{{ d.ponyhead_link }}">{{ d.name }} ({{ d.description }})</a><br/>
+          {% for placement, d in t.decklists|slice:":8" %}
+          {{ placement|ordinal }} <a href="{{ d.ponyhead_link }}">{{ d.name }} ({{ d.description }})</a><br/>
           {% endfor %}
         </td>
       </tr>
           {% endfor %}
         </td>
       </tr>
 {% block jumbotron_end %}
 <div class="jumbotron">
   <div class="container">
 {% block jumbotron_end %}
 <div class="jumbotron">
   <div class="container">
-    <h2>Is your deck not in the list?</h2>
+    <h1>Is your deck not on the list?</h1>
     <p> Paste your <a href="http://ponyhead.com/deckbuilder">ponyhead.com</a> URL here and help make this site better!</p>
     <p>
     <p> Paste your <a href="http://ponyhead.com/deckbuilder">ponyhead.com</a> URL here and help make this site better!</p>
     <p>
-      <form action="/meta/rate" method="post" class="form-inline" role="form">
+      <form action="{% url 'meta.views.rate' %}" method="post" class="form-inline" role="form">
         {% csrf_token %}
         <div class="form-group">
           <label class="sr-only" for="ponyheadURL">ponyhead decklist url</label>
         {% csrf_token %}
         <div class="form-group">
           <label class="sr-only" for="ponyheadURL">ponyhead decklist url</label>