Sha256: b534d5f2ed3a8bcf4d18684611001972ded35c6aa3cfbdb6c52258474655cd39

Contents?: true

Size: 1.27 KB

Versions: 9

Compression:

Stored size: 1.27 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 heading6">
        <%= translated_attribute(result.title) %>
      </h4>

      <div class="text-small card--meta">
        <% 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 class="card--list__data">
        <span class="card--list__data__number"><%= display_percentage result.progress %></span>
      </div>
  <% end %>
</div>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
decidim-accountability-0.26.10 app/views/decidim/participatory_spaces/_result.html.erb
decidim-accountability-0.26.9 app/views/decidim/participatory_spaces/_result.html.erb
decidim-accountability-0.27.5 app/views/decidim/participatory_spaces/_result.html.erb
decidim-accountability-0.26.8 app/views/decidim/participatory_spaces/_result.html.erb
decidim-accountability-0.27.4 app/views/decidim/participatory_spaces/_result.html.erb
decidim-accountability-0.27.3 app/views/decidim/participatory_spaces/_result.html.erb
decidim-accountability-0.26.7 app/views/decidim/participatory_spaces/_result.html.erb
decidim-accountability-0.26.5 app/views/decidim/participatory_spaces/_result.html.erb
decidim-accountability-0.27.2 app/views/decidim/participatory_spaces/_result.html.erb