app/views/decidim/participatory_spaces/_proposal.html.erb in decidim-proposals-0.11.2 vs app/views/decidim/participatory_spaces/_proposal.html.erb in decidim-proposals-0.12.0.pre
- old
+ new
@@ -1,27 +2 @@
-<div class="column">
- <article class="card card--proposal">
- <div class="card__content">
- <div class="card__header">
- <%= link_to resource_locator(proposal).path do %>
- <h5 class="card__title"><%= proposal.title %></h5>
- <% end %>
- <div class="card__author author-data author-data--small">
- <%= render partial: "decidim/shared/author_reference", locals: { author: present(proposal).author } %>
- </div>
- <div class="tech-info tech-info--text-left">
- <%= t(".creation_date", date: l(proposal.created_at, format: :decidim_short)) %>
- </div>
- <%= resource_reference(proposal, class: "tech-info--text-left") %>
- </div>
- <%= render partial: "decidim/proposals/proposals/proposal_badge", locals: { proposal: proposal } %>
- <p><%= truncate(proposal.body, length: 100) %></p>
- <%= render partial: "decidim/shared/tags", locals: { resource: proposal, tags_class_extra: "tags--proposal" } %>
- </div>
- <div class="card__footer">
- <div class="card__support">
- <div class="card__support__data"></div>
- <%= link_to t(".view_proposal"), resource_locator(proposal).path, class: "card__button button small secondary" %>
- </div>
- </div>
- </article>
-</div>
+<%= card_for proposal %>