Sha256: 2fb51ecd152b2346681fd83f6ac850e2012995cdfd99623a2526666e9857d29e

Contents?: true

Size: 1.18 KB

Versions: 6

Compression:

Stored size: 1.18 KB

Contents

<div class="card--list__item">
  <%= icon "actions", class: "card--list__icon", role: "img", "aria-hidden": true, remove_icon_class: true %>

  <%= link_to resource_locator(result).path, class: "card--list__text card__link card__link--block" do %>
      <h4 class="card--list__heading">
        <%= translated_attribute(result.title) %>
      </h4>

      <div>
        <% if result.start_date %>
            <strong><%= t("models.result.fields.start_date", scope: "decidim.accountability") %></strong>
            <span><%= l result.start_date, format: :short %></span>
        <% end %>

        <% if result.end_date %>
            <strong><%= t("models.result.fields.end_date", scope: "decidim.accountability") %></strong>
            <span><%= l result.end_date, format: :short %></span>
        <% end %>

        <% if result.status %>
            <strong><%= t("models.result.fields.status", scope: "decidim.accountability") %></strong>
            <span><%= translated_attribute(result.status.name) %></span>
        <% end %>
      </div>
  <% end %>

  <% if result.progress.present? %>
      <div>
        <span><%= display_percentage result.progress %></span>
      </div>
  <% end %>
</div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-accountability-0.29.1 app/views/decidim/participatory_spaces/_result.html.erb
decidim-accountability-0.29.0 app/views/decidim/participatory_spaces/_result.html.erb
decidim-accountability-0.29.0.rc4 app/views/decidim/participatory_spaces/_result.html.erb
decidim-accountability-0.29.0.rc3 app/views/decidim/participatory_spaces/_result.html.erb
decidim-accountability-0.29.0.rc2 app/views/decidim/participatory_spaces/_result.html.erb
decidim-accountability-0.29.0.rc1 app/views/decidim/participatory_spaces/_result.html.erb