decidim-proposals/app/views/decidim/proposals/proposals/_proposal.html.erb in decidim-0.0.3 vs decidim-proposals/app/views/decidim/proposals/proposals/_proposal.html.erb in decidim-0.0.4

- old
+ new

@@ -17,22 +17,18 @@ </div> </div> </div> <%= render partial: "proposal_badge", locals: { proposal: proposal } %> <p><%= truncate(proposal.body, length: 100) %></p> - <% if proposal.category %> - <ul class="tags tags--proposal"> - <li><a href=""><%= translated_attribute(proposal.category.name) %></a></li> - </ul> - <% end %> + <%= render partial: "tags", locals: { proposal: proposal } %> </div> <div class="card__footer"> <div class="card__support"> <% if current_settings.votes_enabled? %> <div id="proposal-<%= proposal.id %>-votes-count" class="card__support__data"> <%= render partial: "votes_count", locals: { proposal: proposal, from_proposals_list: true } %> </div> - <div id="proposal-<%= proposal.id %>-vote-button"> + <div id="proposal-<%= proposal.id %>-vote-button"> <%= render partial: "vote_button", locals: { proposal: proposal, from_proposals_list: true } %> </div> <% elsif !current_settings.votes_enabled? || current_settings.votes_enabled? && current_settings.votes_blocked? %> <div class="card__support__data"></div> <%= link_to t(".view_proposal"), proposal, class: "card__button button small secondary" %>