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>
|
</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>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue