Sha256: de15cea56da07aaa781c48cca74639520e17f255190d3109c619ab60e4eb0ebf

Contents?: true

Size: 882 Bytes

Versions: 12

Compression:

Stored size: 882 Bytes

Contents

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

    <ul class="tags tags--action">
      <li <%= active_class_if_current(nil) %>><%= link_to t("results.filters.all", scope: "decidim.accountability"), url_for(filter: { category_id: category.try(:id) }) %></li>
      <li <%= active_class_if_current("global") %>><%= link_to t("results.filters.global", scope: "decidim.accountability"), url_for(filter: { scope_id: "global", category_id: category.try(:id) }) %></li>

      <% current_participatory_space.subscopes.each do |scope| %>
        <li <%= active_class_if_current(scope.id) %>><%= link_to translated_attribute(scope.name), url_for(filter: { scope_id: scope.id, category_id: category.try(:id) }) %></li>
      <% end %>
    </ul>
  <% end %>
</div>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
decidim-accountability-0.8.4 app/views/decidim/accountability/results/_scope_filters.html.erb
decidim-accountability-0.8.3 app/views/decidim/accountability/results/_scope_filters.html.erb
decidim-accountability-0.8.2 app/views/decidim/accountability/results/_scope_filters.html.erb
decidim-accountability-0.8.1 app/views/decidim/accountability/results/_scope_filters.html.erb
decidim-accountability-0.8.0 app/views/decidim/accountability/results/_scope_filters.html.erb
decidim-accountability-0.7.4 app/views/decidim/accountability/results/_scope_filters.html.erb
decidim-accountability-0.7.3 app/views/decidim/accountability/results/_scope_filters.html.erb
decidim-accountability-0.7.2 app/views/decidim/accountability/results/_scope_filters.html.erb
decidim-accountability-0.7.1 app/views/decidim/accountability/results/_scope_filters.html.erb
decidim-accountability-0.7.0 app/views/decidim/accountability/results/_scope_filters.html.erb
decidim-accountability-0.1.2 app/views/decidim/accountability/results/_scope_filters.html.erb
decidim-accountability-0.1.1 app/views/decidim/accountability/results/_scope_filters.html.erb