Sha256: 81c60fbffb3b871c1b5aee2f558da914f4920fe67d08a30f35418a07d7985414

Contents?: true

Size: 548 Bytes

Versions: 3

Compression:

Stored size: 548 Bytes

Contents

<% if resource.category.present? || has_visible_scopes?(resource) %>
  <ul class="tags <%= tags_class_extra %>">
    <% if resource.category.present? %>
      <li><%= link_to translated_attribute(resource.category.name), resource_locator(resource).index(filter: { category_id: resource.category.id }) %></li>
    <% end %>

    <% if has_visible_scopes?(resource) %>
      <li><%= link_to translated_attribute(resource.scope.name), resource_locator(resource).index(filter: { scope_id: [resource.scope.id] }) %></li>
    <% end %>
  </ul>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
decidim-core-0.11.2 app/views/decidim/shared/_tags.html.erb
decidim-core-0.11.1 app/views/decidim/shared/_tags.html.erb
decidim-core-0.11.0.pre1 app/views/decidim/shared/_tags.html.erb