Sha256: 72d855c2f630058d25f7a9390f684c8742604d0f39059713aa6d09a84234b777

Contents?: true

Size: 1.54 KB

Versions: 3

Compression:

Stored size: 1.54 KB

Contents

<div class="column">
  <article class="card card--initiative">
    <div class="card__content">
      <div class="card__header">
        <%= link_to initiative do %>
          <h5 class="card__title"><%= translated_attribute initiative.title %></h5>
        <% end %>
        <%= render partial: "decidim/initiatives/initiatives/author", locals: { initiative: initiative } %>
      </div>
      <%= render partial: "decidim/initiatives/initiatives/initiative_badge", locals: { initiative: initiative } %>
      <%= simple_format Truncato.truncate(translated_attribute(initiative.description), max_length: 100, separator: "...") %>
      <%= render partial: "decidim/initiatives/initiatives/tags", locals: { resource: initiative } %>
    </div>

    <div class="card__footer">
      <div class="card__support">
        <% if initiative.published? %>
          <%= render partial: "decidim/initiatives/initiatives/supports_count", locals: { initiative: initiative } %>
        <% else %>
          <div class="card__support__data"></div>
        <% end %>

        <% if initiative.closed? || initiative.offline? %>
          <%= link_to t("initiatives.initiative.check", scope: "layouts.decidim"),
                      initiative,
                      class: "card__button button small secondary" %>
        <% else %>
          <%= link_to t("initiatives.initiative.check_and_support", scope: "layouts.decidim"),
                      initiative,
                      class: "card__button button small secondary" %>
        <% end %>
      </div>
    </div>
  </article>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
decidim-initiatives-0.11.2 app/views/decidim/initiatives/_initiative.html.erb
decidim-initiatives-0.11.1 app/views/decidim/initiatives/_initiative.html.erb
decidim-initiatives-0.11.0.pre1 app/views/decidim/initiatives/_initiative.html.erb