Display only one of description and tiebreak at once

This commit is contained in:
ricola 2026-01-21 20:42:59 -06:00
parent 6c700a8f13
commit 103fcd6e50

View file

@ -71,11 +71,12 @@
</a>
<% end %>
</p>
<div class="collapse" id="description-<%= r %>">
<div id="content-wrapper-<%= r %>">
<div class="collapse" data-bs-parent="#content-wrapper-<%= r %>" id="description-<%= r %>">
<%= markdown(c.description) %>
</div>
<% if r > 1 and c.mj.mj == @results.first.mj.mj %>
<div class="collapse" id="tiebreak-<%= r %>">
<div class="collapse" data-bs-parent="#content-wrapper-<%= r %>" id="tiebreak-<%= r %>">
<p>
<%= _("This candidate and the winning candidate have the same majority judgment.") %>
</p>
@ -158,6 +159,7 @@
<% end %>
</div>
</div>
</div>
<% end %>
<div class="mb-5"></div>