Just like we did in commit0214184b2dfor investments, we're removing some possible optimizations (we don't have any benchmarks proving they affect performance at all) in order to simplify the code. The investement votes component `delegate` code was accidentally left but isn't used since commit0214184b2, so we're removing it now that we're removing the `voted_for?` helper method.
15 lines
472 B
Plaintext
15 lines
472 B
Plaintext
<div id="<%= dom_id(debate) %>" class="debate minimal clear" data-type="debate">
|
|
<div class="panel">
|
|
<div class="row">
|
|
<div class="small-12 column">
|
|
<div class="debate-content">
|
|
<% cache [locale_and_user_status,
|
|
"index_minimal", debate, current_user&.voted_as_when_voted_for(debate)] do %>
|
|
<h3><%= link_to debate.title, debate %></h3>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|