Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: karenc/SMS-Hunt
base: f3de0b38f9
...
head fork: karenc/SMS-Hunt
compare: 163fb80521
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 3 files changed
  • 0 commit comments
  • 2 contributors
View
13 src/controller.py
@@ -62,6 +62,15 @@ def post(self):
class ShowHunt(webapp.RequestHandler):
@utils.logged_in
def get(self, hunt_id):
+
+ def answer_letter(t,c):
+ if t.has_clue_left(c):
+ return ' '
+ elif t.correctly_answered(c):
+ return 'X'
+ else:
+ return 'P'
+
hunt = get_hunt_by_id(hunt_id)
if not hunt:
self.redirect('/')
@@ -69,9 +78,9 @@ def get(self, hunt_id):
answer_sets = []
for clue in hunt.clues:
if hunt.started:
- answers = [not team.has_clue_left(clue) for team in hunt.teams]
+ answers = [answer_letter(team,clue) for team in hunt.teams]
else:
- answers = [False for team in hunt.teams]
+ answers = [' ' for team in hunt.teams]
answer_sets.append({
'question': clue.question,
'answers': answers,
View
4 src/static/css/main.css
@@ -57,6 +57,8 @@ FORM {
.tabs {
margin-top: 5px;
+ border-bottom: 2px solid #9BE;
+ padding: 5px 25px;
}
.tabs A {
@@ -75,7 +77,7 @@ FORM {
.tabs A.active {
background-color: white;
border: 2px solid #9BE;
- border-bottom: 0;
+ border-bottom: 2px solid white;
-moz-border-radius-topright: 15px;
-moz-border-radius-topleft: 15px;
border-top-right-radius: 15px;
View
2  src/templates/hunt.html
@@ -29,7 +29,7 @@
{% for answer_set in answer_sets %}
<tr><td>{{ answer_set.question }}</td>
{% for answer in answer_set.answers %}
- <td>{% if answer %}X{% endif %}</td>
+ <td>{{ answer }}</td>
{% endfor %}
</tr>
{% endfor %}

No commit comments for this range

Something went wrong with that request. Please try again.