Skip to content

Commit

Permalink
properly disable certain ui elements for performance
Browse files Browse the repository at this point in the history
  • Loading branch information
HillcrestEnigma committed Mar 9, 2024
1 parent c3e91f6 commit 3038a60
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion templates/contest/detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,11 @@ <h5>{{ contest.duration }} long</h5>
{% endif %}
</p>
{% endif %}
{% comment "Disabled for performance reasons" %}
{% if user_participation %}
{% include './snippet/participation/table.html' with participation=user_participation hide_contest_col=True %}
{% endif %}
{% endcomment %}

{% if contest.is_ongoing %}
{% if request.user.current_contest.contest == contest %}
Expand All @@ -102,7 +104,7 @@ <h5>{{ contest.duration }} long</h5>
{% if contest.teams_allowed and not user_participation %}
{% bootstrap_field form.participant wrapper_class="mb-2" %}
<p id="team-size-display" class="text-muted mb-2" style="font-size: 0.75rem;line-height:1.6"></p>
<p class="text-muted fst-italic" style="font-size: 0.75rem;line-height:1.6">Once you participate as part of
Disabled for performance reasons <p class="text-muted fst-italic" style="font-size: 0.75rem;line-height:1.6">Once you participate as part of
a team, you cannot change back to individual participation.</p>
{% else %}
{% bootstrap_field form.participant wrapper_class="d-none" %}
Expand Down
6 changes: 4 additions & 2 deletions templates/contest/participation.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,12 @@ <h2 class="card-header fs-6">Recent Submissions</h2>
{% block aside %}
<div class="card mb-3 order-neg1">
<div class="card-body participation-summary">
<!-- <div>
{% comment "Disabled for Performance Reasons" %}
<div>
<span>#{{ participation.rank }}</span>
<span>rank</span>
</div> -->
</div>
{% endcomment %}
<div>
<span>{{ participation.points }}</span>
<span>point{{ participation.points|pluralize }}</span>
Expand Down

0 comments on commit 3038a60

Please sign in to comment.