Sha256: e49351d0f310817e2582d69b57dd9e5174b244079044bd28b20e9a9d58005fbb

Contents?: true

Size: 880 Bytes

Versions: 1

Compression:

Stored size: 880 Bytes

Contents

<div class="scope-filters section">
  <% if current_organization.scopes.any? && !current_participatory_process.scope %>
    <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_organization.scopes.each do |scope| %>
        <li <%= active_class_if_current(scope.id) %>><%= link_to scope.name, url_for(filter: { scope_id: scope.id, category_id: category.try(:id) }) %></li>
      <% end %>
    </ul>
  <% end %>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
decidim-accountability-0.1.0 app/views/decidim/accountability/results/_scope_filters.html.erb