Don't display team rank in workshop mode (#590)

* Don't display team rank in workshop mode
selenium-screenshot-testing
Nick Gonella 2018-03-19 21:48:14 -07:00 committed by Kevin Chung
parent 935e214a09
commit 6eebd5d220
2 changed files with 5 additions and 1 deletions

View File

@ -26,7 +26,7 @@
<div class="team-info">
<h2 id="team-place" class="text-center">
{%if place %}
{%if not get_config('workshop_mode') and place %}
{{ place }} <small>place</small>
{% endif %}
</h2>

View File

@ -624,4 +624,8 @@ def test_workshop_mode():
received = json.loads(output)
assert saved == received
r = client.get('/team')
output = r.get_data(as_text=True)
assert "1st <small>place</small>" not in output
destroy_ctfd(app)