Commits

Juan Martínez committed dc1edde

HTML cleanup

- removed paragraphs and used table rows instead
- some css tweaks

Comments (0)

Files changed (2)

pyweek/challenge/media/challenge.css

 
 table#top-entries {
     width: 100%;
-    margin-bottom: 1em;
+    margin-bottom: 1.5em;
+}
+table#top-entries td {
+	vertical-align: top;
+	padding-bottom: 0.5em;
 }
 
 #pagination {

pyweek/challenge/templates/challenge/ratings.html

 <h1>{% autoescape off %}{{ challenge.pageTitle }}{% endautoescape %} &mdash; results</h1>
 
 <table id="top-entries">
-  <tr>
-  <td colspan="4">
-    <strong>Top Individual Entries</strong>
-  </td>
-  </tr>
-  <tr>
-  <td>
-    <p><strong>Overall</strong></p>
-    <p>
-    {% for rating in individual_overall %}
-    ({{ rating.overall|floatformat:2  }}) <a href="/e/{{ rating.entry.name }}/">{{ rating.entry.title }}</a><br/>
-    {% endfor %}
-    </p>
-  </td>
-  <td>
-    <p><strong>Fun</strong></p>
-    <p>
-    {% for rating in individual_fun %}
-    ({{ rating.fun|floatformat:2  }}) <a href="/e/{{ rating.entry.name }}/">{{ rating.entry.title }}</a><br/>
-    {% endfor %}
-    </p>
-  </td>
-  <td>
-    <p><strong>Innovation</strong></p>
-    <p>
-    {% for rating in individual_inno %}
-    ({{ rating.innovation|floatformat:2  }}) <a href="/e/{{ rating.entry.name }}/">{{ rating.entry.title }}</a><br/>
-    {% endfor %}
-    </p>
-  </td>
-  <td>
-    <p><strong>Production</strong></p>
-    <p>
-    {% for rating in individual_prod %}
-    ({{ rating.production|floatformat:2  }}) <a href="/e/{{ rating.entry.name }}/">{{ rating.entry.title }}</a><br/>
-    {% endfor %}
-    </p>
-  </td>
-  </tr>
-  <tr>
-  <td colspan="4">
-    <strong>Top Team Entries</strong>
-  </td>
-  </tr>
-  <tr>
-  <td>
-    <p><strong>Overall</strong></p>
-    <p>
-    {% for rating in team_overall %}
-    ({{ rating.overall|floatformat:2  }}) <a href="/e/{{ rating.entry.name }}/">{{ rating.entry.title }}</a><br/>
-    {% endfor %}
-    </p>
-  </td>
-  <td>
-    <p><strong>Fun</strong></p>
-    <p>
-    {% for rating in team_fun %}
-    ({{ rating.fun|floatformat:2  }}) <a href="/e/{{ rating.entry.name }}/">{{ rating.entry.title }}</a><br/>
-    {% endfor %}
-    </p>
-  </td>
-  <td>
-    <p><strong>Innovation</strong></p>
-    <p>
-    {% for rating in team_inno %}
-    ({{ rating.innovation|floatformat:2  }}) <a href="/e/{{ rating.entry.name }}/">{{ rating.entry.title }}</a><br/>
-    {% endfor %}
-    </p>
-  </td>
-  <td>
-    <p><strong>Production</strong></p>
-    <p>
-    {% for rating in team_prod %}
-    ({{ rating.production|floatformat:2  }}) <a href="/e/{{ rating.entry.name }}/">{{ rating.entry.title }}</a><br/>
-    {% endfor %}
-    </p>
-  </td>
-  </tr>
+  <tbody>
+    <tr>
+      <td colspan="4"><strong>Top Individual Entries</strong></td>
+    </tr>
+    <tr>
+      <td><strong>Overall</strong></td>
+      <td><strong>Fun</strong></td>
+      <td><strong>Innovation</strong></td>
+      <td><strong>Production</strong></td>
+    </tr>
+    <tr>
+      <td>
+        {% for rating in individual_overall %}
+          ({{ rating.overall|floatformat:2  }}) <a href="/e/{{ rating.entry.name }}/">{{ rating.entry.title }}</a><br/>
+        {% endfor %}
+      </td>
+      <td>
+        {% for rating in individual_fun %}
+          ({{ rating.fun|floatformat:2  }}) <a href="/e/{{ rating.entry.name }}/">{{ rating.entry.title }}</a><br/>
+        {% endfor %}
+      </td>
+      <td>
+        {% for rating in individual_inno %}
+        ({{ rating.innovation|floatformat:2  }}) <a href="/e/{{ rating.entry.name }}/">{{ rating.entry.title }}</a><br/>
+        {% endfor %}
+      </td>
+      <td>
+        {% for rating in individual_prod %}
+        ({{ rating.production|floatformat:2  }}) <a href="/e/{{ rating.entry.name }}/">{{ rating.entry.title }}</a><br/>
+        {% endfor %}
+      </td>
+    </tr>
+    <tr>
+      <td colspan="4" style="padding-top: 1em;"><strong>Top Team Entries</strong></td>
+    </tr>
+    <tr>
+      <td><strong>Overall</strong></td>
+      <td><strong>Fun</strong></td>
+      <td><strong>Innovation</strong></td>
+      <td><strong>Production</strong></td>
+    </tr>
+    <tr>
+      <td>
+        {% for rating in team_overall %}
+        ({{ rating.overall|floatformat:2  }}) <a href="/e/{{ rating.entry.name }}/">{{ rating.entry.title }}</a><br/>
+        {% endfor %}
+      </td>
+      <td>
+        {% for rating in team_fun %}
+        ({{ rating.fun|floatformat:2  }}) <a href="/e/{{ rating.entry.name }}/">{{ rating.entry.title }}</a><br/>
+        {% endfor %}
+      </td>
+      <td>
+        {% for rating in team_inno %}
+        ({{ rating.innovation|floatformat:2  }}) <a href="/e/{{ rating.entry.name }}/">{{ rating.entry.title }}</a><br/>
+        {% endfor %}
+      </td>
+      <td>
+        {% for rating in team_prod %}
+        ({{ rating.production|floatformat:2  }}) <a href="/e/{{ rating.entry.name }}/">{{ rating.entry.title }}</a><br/>
+        {% endfor %}
+      </td>
+    </tr>
+  </tbody>
 </table>
 
 <table id="diary-board" style="width: auto">
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.