mirror of https://github.com/JohnHammond/CTFd.git
Don't display team rank in workshop mode (#590)
* Don't display team rank in workshop modeselenium-screenshot-testing
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)
|
||||
|
|
Loading…
Reference in New Issue