Sha256: 7c159bfbe0dfc44b70db1b43317af0cff7516097f657c664e4b254da81c49e55

Contents?: true

Size: 1.31 KB

Versions: 6

Compression:

Stored size: 1.31 KB

Contents

<div class="accountability__grid">
  <% first_class_categories.each do |category| %>
    <% subelements = cell(
      "decidim/accountability/status",
      category,
      extra_classes: "accountability__status__background",
      url: results_path(filter: { with_category: category, with_scope: current_scope }),
      render_blank: true
    ) %>

    <div>
      <span class="accountability__grid-title"><%= t("results.home.categories_label", scope: "decidim.accountability") %></span>
      <%= subelements.call %>
    </div>

    <div>
      <span class="accountability__grid-title"><%= t("results.home.subcategories_label", scope: "decidim.accountability") %></span>
        <% if subelements.has_results? %>
          <div class="accountability__subgrid">
            <% category.subcategories.each do |subcategory| %>
              <%= cell(
                    "decidim/accountability/status",
                    subcategory,
                    extra_classes: "accountability__status__border",
                    url: results_path(filter: { with_category: subcategory, with_scope: current_scope })
                  ) %>
            <% end %>
          </div>
        <% else %>
          <%= cell("decidim/announcement", t("no_results", scope: "decidim.accountability.results")) %>
        <% end %>
      </div>
  <% end %>
</div>

Version data entries

6 entries across 6 versions & 1 rubygems

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