-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated hunt2.html and major profiling improvements
- Loading branch information
Showing
6 changed files
with
109 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import models, migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('huntserver', '0032_auto_20151221_1242'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterUniqueTogether( | ||
name='solve', | ||
unique_together=set([('puzzle', 'team')]), | ||
), | ||
migrations.AlterUniqueTogether( | ||
name='unlock', | ||
unique_together=set([('puzzle', 'team')]), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,73 +1,66 @@ | ||
{% extends "base.html" %} | ||
{% block title %}Puzzles!{% endblock title %} | ||
|
||
{% block includes %} | ||
<link rel="stylesheet" type="text/css" media='screen and (max-width: 1200px)' href="/protected/huntserver/low-width.css"> | ||
<style> | ||
body { | ||
padding-bottom: 0px; | ||
} | ||
</style> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<div id='container'> | ||
<div id='content-left'> | ||
<h1 class="title">Unlocked Puzzles</h1> | ||
<a href='/objects/' > | ||
<p style="margin-top: -10px;"> Click here for unlocked objects </p> | ||
</a> | ||
<div id="puzzles"> | ||
<table> | ||
<thead> | ||
<tr> | ||
<th style='width: 80px;'>Solved?</th> | ||
<th style='width: 100px;'>Answer</th> | ||
<th style='width: 320px;'>Puzzle Name/Link</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for puzzle in puzzles %} | ||
<tr id='puzzle{{ puzzle.puzzle_number }}' class='puzzle'> | ||
<td> | ||
{% if puzzle in team.solved.all %} | ||
<img src="{{ STATIC_URL }}huntserver/checkmark.png" alt="Solved"></img> | ||
{% else %} | ||
<img src="{{ STATIC_URL }}huntserver/red_x.png" alt="Solved"></img> | ||
{% endif %} | ||
</td> | ||
<td> | ||
{% if puzzle in team.solved.all %} | ||
{{ puzzle.answer|upper }} | ||
{% endif %} | ||
</td> | ||
<td> | ||
<a href='/puzzle/{{ puzzle.puzzle_id }}/' > | ||
<p class="puzzle-name">P{{puzzle.puzzle_number}} - {{ puzzle.puzzle_name }}</p> | ||
</a> | ||
</td> | ||
</div> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="content col-md-6"> | ||
<h1 class="title">Unlocked Puzzles</h1> | ||
<a href='/objects/' > | ||
<p style="margin-top: -5px;"> Click here for unlocked objects </p> | ||
</a> | ||
<div id="puzzles"> | ||
<table> | ||
<thead> | ||
<tr> | ||
<th style='width: 80px;'>Solved?</th> | ||
<th style='width: 100px;'>Answer</th> | ||
<th style='width: 320px;'>Puzzle Name/Link</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for puzzle in puzzles %} | ||
<tr id='puzzle{{ puzzle.puzzle_number }}' class='puzzle'> | ||
<td> | ||
{% if puzzle in solved %} | ||
<img src="{{ STATIC_URL }}huntserver/checkmark.png" alt="Solved"></img> | ||
{% else %} | ||
<img src="{{ STATIC_URL }}huntserver/red_x.png" alt="Solved"></img> | ||
{% endif %} | ||
</td> | ||
<td> | ||
{% if puzzle in solved %} | ||
{{ puzzle.answer|upper }} | ||
{% endif %} | ||
</td> | ||
<td> | ||
<a href='/puzzle/{{ puzzle.puzzle_id }}/' > | ||
<p class="puzzle-name">P{{puzzle.puzzle_number}} - {{ puzzle.puzzle_name }}</p> | ||
</a> | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</div> | ||
<p>For assistance, email <a href="mailto:dlareau@cmu.edu">dlareau@cmu.edu</a> or try our new <a href="/chat/"> Chat Feature</a>.</p> | ||
</div> | ||
<p>For assistance, email <a href="mailto:dlareau@cmu.edu">dlareau@cmu.edu</a> or try our new <a href="/chat/"> Chat Feature</a>.</p> | ||
</div> | ||
<div id='content-right'> | ||
<div id='plot'> | ||
{% if puzzles|length > 12 %} | ||
Some helpful maps: | ||
{% else %} | ||
A helpful map: | ||
{% endif %} | ||
<img src="{{ STATIC_URL }}huntserver/plot1.png" alt="plot1.png" width="450px"></img> | ||
{% if puzzles|length > 12 %} | ||
<br> | ||
<br> | ||
This will help your journey to the second castle: | ||
<img src="{{ STATIC_URL }}huntserver/plot2.png" alt="plot1.png" width="450px"></img> | ||
{% endif %} | ||
<div class="content col-md-5"> | ||
<div id='plot'> | ||
{% if puzzles|length > 12 %} | ||
Some helpful maps: | ||
{% else %} | ||
A helpful map: | ||
{% endif %} | ||
<img src="{{ STATIC_URL }}huntserver/plot1.png" alt="plot1.png" width="450px"></img> | ||
{% if puzzles|length > 12 %} | ||
<br> | ||
<br> | ||
This will help your journey to the second castle: | ||
<img src="{{ STATIC_URL }}huntserver/plot2.png" alt="plot1.png" width="450px"></img> | ||
{% endif %} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters