Sha256: f39b68ec8fb0930b33ba5653f4731096e1069db496c7e1b1463b8e1733f1fef0

Contents?: true

Size: 1.79 KB

Versions: 14

Compression:

Stored size: 1.79 KB

Contents

<div class="title-action">
  <h2 id="results-count" class="title-action__title section-heading">
    <%= heading_leaf_level_results(total_count) %>
  </h2>
</div>

<div class="row">
  <div id="results" class="columns">
    <div class="card card--action card--list">
      <% results.each do |result| %>
        <div class="card--list__item">
          <%= icon "actions", class: "card--list__icon", remove_icon_class: true %>

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

            <div class="text-small card--meta">
              <% if result.start_date %>
                <strong><%= t("models.result.fields.start_date", scope: "decidim.accountability") %></strong>
                <span><%= result.start_date %></span>
              <% end %>

              <% if result.end_date %>
                <strong><%= t("models.result.fields.end_date", scope: "decidim.accountability") %></strong>
                <span><%= result.end_date %></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>
      <% end %>
    </div>
    <%= decidim_paginate results, order_start_time: params[:order_start_time], scope_id: params[:scope_id] %>
  </div>
</div>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
decidim-accountability-0.9.3 app/views/decidim/accountability/results/_results_leaf.html.erb
decidim-accountability-0.9.2 app/views/decidim/accountability/results/_results_leaf.html.erb
decidim-accountability-0.9.1 app/views/decidim/accountability/results/_results_leaf.html.erb
decidim-accountability-0.9.0 app/views/decidim/accountability/results/_results_leaf.html.erb
decidim-accountability-0.8.4 app/views/decidim/accountability/results/_results_leaf.html.erb
decidim-accountability-0.8.3 app/views/decidim/accountability/results/_results_leaf.html.erb
decidim-accountability-0.8.2 app/views/decidim/accountability/results/_results_leaf.html.erb
decidim-accountability-0.8.1 app/views/decidim/accountability/results/_results_leaf.html.erb
decidim-accountability-0.8.0 app/views/decidim/accountability/results/_results_leaf.html.erb
decidim-accountability-0.7.4 app/views/decidim/accountability/results/_results_leaf.html.erb
decidim-accountability-0.7.3 app/views/decidim/accountability/results/_results_leaf.html.erb
decidim-accountability-0.7.2 app/views/decidim/accountability/results/_results_leaf.html.erb
decidim-accountability-0.7.1 app/views/decidim/accountability/results/_results_leaf.html.erb
decidim-accountability-0.7.0 app/views/decidim/accountability/results/_results_leaf.html.erb