mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-18 14:34:21 +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">
|
||||
<h2 id="team-place" class="text-center">
|
||||
{%if place %}
|
||||
{%if not get_config('workshop_mode') and place %}
|
||||
{{ place }} <small>place</small>
|
||||
{% endif %}
|
||||
</h2>
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user