Skip to content

Commit

Permalink
Don't display team rank in workshop mode (CTFd#590)
Browse files Browse the repository at this point in the history
* Don't display team rank in workshop mode
  • Loading branch information
sig1nt authored and ColdHeat committed Mar 20, 2018
1 parent 935e214 commit 6eebd5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CTFd/themes/core/templates/team.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h1 class="text-center">Scoreboard has been frozen.</h1>

<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>
Expand Down
4 changes: 4 additions & 0 deletions tests/user/test_user_facing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 6eebd5d

Please sign in to comment.