Sha256: 1eb369c973176d81b9d03b76085d551dcdb9e80a76a6f72d83af81c9c3832d14

Contents?: true

Size: 1.21 KB

Versions: 7

Compression:

Stored size: 1.21 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"><%= categories_label %></span>
      <%= subelements.call %>
    </div>

    <div>
      <span class="accountability__grid-title"><%= subcategories_label %></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

7 entries across 7 versions & 1 rubygems

Version Path
decidim-accountability-0.28.4 app/views/decidim/accountability/results/_home_categories.html.erb
decidim-accountability-0.28.3 app/views/decidim/accountability/results/_home_categories.html.erb
decidim-accountability-0.28.2 app/views/decidim/accountability/results/_home_categories.html.erb
decidim-accountability-0.28.1 app/views/decidim/accountability/results/_home_categories.html.erb
decidim-accountability-0.28.0 app/views/decidim/accountability/results/_home_categories.html.erb
decidim-accountability-0.28.0.rc5 app/views/decidim/accountability/results/_home_categories.html.erb
decidim-accountability-0.28.0.rc4 app/views/decidim/accountability/results/_home_categories.html.erb