Sha256: f390e7a53431a8d99e67f55094a92d1c448e286d260041d16cc1f98b782ea59f

Contents?: true

Size: 1.43 KB

Versions: 12

Compression:

Stored size: 1.43 KB

Contents

<div class="scope-filters section">
  <% if current_component.has_subscopes? %>
    <div><%= t("results.filters.scopes", scope: "decidim.accountability") %></div>

    <ul class="tags tags--action">
      <li <%= active_class_if_current(nil) %>>
          <%= link_to url_for(filter: { with_category: category.try(:id) }) do %>
            <span class="show-for-sr"><%= Decidim::Scope.model_name.human(count: 2) %></span>
            <%= t("results.filters.all", scope: "decidim.accountability") %>
          <% end %>
      </li>

      <% if current_participatory_space.scope %>
        <li <%= active_class_if_current(current_participatory_space.scope.id) %>>
          <%= link_to url_for(filter: { with_scope: current_participatory_space.scope.id, with_category: category.try(:id) }) do %>
            <span class="show-for-sr"><%= Decidim::Scope.model_name.human(count: 1) %></span>
            <%= translated_attribute(current_participatory_space.scope.name) %>
          <% end %>
        </li>
      <% end %>
      <% current_participatory_space.subscopes.each do |scope| %>
        <li <%= active_class_if_current(scope.id) %>>
          <%= link_to url_for(filter: { with_scope: scope.id, with_category: category.try(:id) }) do %>
            <span class="show-for-sr"><%= Decidim::Scope.model_name.human(count: 1) %></span>
            <%= translated_attribute(scope.name) %>
          <% end %>
        </li>
      <% end %>
    </ul>
  <% end %>
</div>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
decidim-accountability-0.27.9 app/views/decidim/accountability/results/_scope_filters.html.erb
decidim-accountability-0.27.8 app/views/decidim/accountability/results/_scope_filters.html.erb
decidim-accountability-0.27.7 app/views/decidim/accountability/results/_scope_filters.html.erb
decidim-accountability-0.27.6 app/views/decidim/accountability/results/_scope_filters.html.erb
decidim-accountability-0.27.5 app/views/decidim/accountability/results/_scope_filters.html.erb
decidim-accountability-0.27.4 app/views/decidim/accountability/results/_scope_filters.html.erb
decidim-accountability-0.27.3 app/views/decidim/accountability/results/_scope_filters.html.erb
decidim-accountability-0.27.2 app/views/decidim/accountability/results/_scope_filters.html.erb
decidim-accountability-0.27.1 app/views/decidim/accountability/results/_scope_filters.html.erb
decidim-accountability-0.27.0 app/views/decidim/accountability/results/_scope_filters.html.erb
decidim-accountability-0.27.0.rc2 app/views/decidim/accountability/results/_scope_filters.html.erb
decidim-accountability-0.27.0.rc1 app/views/decidim/accountability/results/_scope_filters.html.erb