Sha256: fe4e251a583fec6d0180f18ce576bdf060f6a0a8324a64b8480c604a864b96ec

Contents?: true

Size: 1.32 KB

Versions: 3

Compression:

Stored size: 1.32 KB

Contents

<% items = filter_items_for(participatory_space: current_participatory_space, category:) %>
<div class="accountability__filters">
  <%= render partial: "search" %>

  <% if current_component.has_subscopes? %>
    <div class="filter-container">
      <button id="dropdown-trigger-accountability" data-component="dropdown" data-target="dropdown-menu-accountability" data-open-md="true">
        <% items.each do |item| %>
          <%= content_tag :span, class: "#{"is-active" if item[:active]}" do %>
            <span class="sr-only"><%= item[:sr_text] %></span>
            <%= icon item[:icon] %>
            <span><%= item[:text] %></span>
          <% end %>
        <% end %>
        <%= icon "arrow-down-s-line", class: "w-8 h-8 flex-none text-secondary fill-current" %>
        <%= icon "arrow-up-s-line", class: "w-8 h-8 flex-none text-secondary fill-current" %>
      </button>
      <ul id="dropdown-menu-accountability" data-scope-filters>
        <% items.each do |item| %>
          <li role="menuitem">
            <%= link_to item[:url], class: "filter#{" is-active" if item[:active]}" do %>
              <span class="sr-only"><%= item[:sr_text] %></span>
              <%= icon item[:icon] %>
              <span><%= item[:text] %></span>
            <% end %>
          </li>
        <% end %>
      </ul>
    </div>
  <% end %>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
decidim-accountability-0.29.1 app/views/decidim/accountability/results/_scope_filters.html.erb
decidim-accountability-0.28.4 app/views/decidim/accountability/results/_scope_filters.html.erb
decidim-accountability-0.29.0 app/views/decidim/accountability/results/_scope_filters.html.erb