The action and the views were almost identical, with the supports progress and the HTML classes of the success message element being the only exceptions; we can use CSS for the styles instead.
28 lines
913 B
Plaintext
28 lines
913 B
Plaintext
<div id="<%= dom_id(proposal) %>" class="proposal-featured clear">
|
|
<div class="small-12 medium-9 column">
|
|
<h3><%= link_to proposal.title, proposal %></h3>
|
|
<div class="info">
|
|
<% if proposal.author.hidden? || proposal.author.erased? %>
|
|
<%= t("proposals.show.author_deleted") %>
|
|
<% else %>
|
|
<%= proposal.author.name %>
|
|
<% end %>
|
|
|
|
•
|
|
|
|
<% if proposal.author.display_official_position_badge? %>
|
|
<span class="label round level-<%= proposal.author.official_level %>">
|
|
<%= proposal.author.official_position %>
|
|
</span>
|
|
•
|
|
<% end %>
|
|
|
|
<strong><%= t("proposals.proposal.supports", count: proposal.total_votes) %></strong>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="<%= dom_id(proposal) %>_votes" class="small-12 medium-3 column">
|
|
<%= render Proposals::VotesComponent.new(proposal) %>
|
|
</div>
|
|
</div>
|