Permalink
Browse files

Add hunt status and "Start hunt" button on front page

  • Loading branch information...
karenc committed Aug 6, 2011
1 parent da8729f commit d7abd9ae79682e5600add248b3bb779cff50bc17
Showing with 28 additions and 3 deletions.
  1. +10 −0 src/static/css/main.css
  2. +18 −3 src/templates/index.html
View
@@ -9,6 +9,10 @@ BODY {
width: 800px;
}
+A, A:active, A:hover, A:visited {
+ color: #005;
+}
+
H1 {
background-color: #ACE;
padding: 10px;
@@ -21,6 +25,12 @@ H2 {
font-size: 15px;
}
+FORM {
+ margin: 0;
+ padding: 0;
+ border: 0;
+}
+
#logo {
padding: 10px 0;
}
View
@@ -17,11 +17,26 @@ <h2>Create a new Hunt:</h2>
</div>
<div>
<h2>Your Hunts:</h2>
- <ul>
+ <table>
+ <tr>
+ <th style="width: 130px">Hunt Name</th>
+ <th style="width: 130px">Status</th>
+ </tr>
{% for hunt in hunts %}
- <li><a href="/hunt/{{ hunt.key.id }}">{{ hunt.name }}</a></li>
+ <tr>
+ <td style="text-align: center"><a href="/hunt/{{ hunt.key.id }}">{{ hunt.name }}</a></td>
+ <td style="text-align: center">
+ {% if hunt.started %}
+ Hunt started!
+ {% else %}
+ <form action="/hunt/{{ hunt.key.id }}" method="post">
+ <input type="submit" value="Start hunt" />
+ </form>
+ {% endif %}
+ </td>
+ </tr>
{% endfor %}
- </ul>
+ </table>
</div>
</div>
</body>

0 comments on commit d7abd9a

Please sign in to comment.