mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-18 06:24:23 +01:00
Don't display team rank in workshop mode (#590)
* Don't display team rank in workshop mode
This commit is contained in:
committed by
Kevin Chung
parent
935e214a09
commit
6eebd5d220
@@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
<div class="team-info">
|
<div class="team-info">
|
||||||
<h2 id="team-place" class="text-center">
|
<h2 id="team-place" class="text-center">
|
||||||
{%if place %}
|
{%if not get_config('workshop_mode') and place %}
|
||||||
{{ place }} <small>place</small>
|
{{ place }} <small>place</small>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</h2>
|
</h2>
|
||||||
|
|||||||
@@ -624,4 +624,8 @@ def test_workshop_mode():
|
|||||||
received = json.loads(output)
|
received = json.loads(output)
|
||||||
assert saved == received
|
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)
|
destroy_ctfd(app)
|
||||||
|
|||||||
Reference in New Issue
Block a user