Display only one of description and tiebreak at once
This commit is contained in:
parent
6c700a8f13
commit
103fcd6e50
1 changed files with 86 additions and 84 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue