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> </a>
<% end %> <% end %>
</p> </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) %> <%= markdown(c.description) %>
</div> </div>
<% if r > 1 and c.mj.mj == @results.first.mj.mj %> <% 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> <p>
<%= _("This candidate and the winning candidate have the same majority judgment.") %> <%= _("This candidate and the winning candidate have the same majority judgment.") %>
</p> </p>
@ -158,6 +159,7 @@
<% end %> <% end %>
</div> </div>
</div> </div>
</div>
<% end %> <% end %>
<div class="mb-5"></div> <div class="mb-5"></div>