Sha256: 6b7b92503376ff2209e79428c1ebb033ea365f8fd583ffaeeb7cbd3c94c5bed1

Contents?: true

Size: 1.68 KB

Versions: 6

Compression:

Stored size: 1.68 KB

Contents

<figure>
  <ul class="tags tags--paragraph tags--list">
    <% if category.present? %>
      <li>
        <%= link_to resource_locator(model).index(filter: { category_id: [category.id.to_s] }), title: t("decidim.tags.filter_results_for_category", resource: translated_attribute(category.name)) do %>
          <span class="show-for-sr"><%= t "decidim.tags.filter_results_for_category", resource: translated_attribute(category.name) %></span>
          <span aria-hidden="true"><%= translated_attribute(category.name) %></span>
        <% end %>
        <% if previous_category.present? && show_previous_category? %>
          &nbsp;
          <small class="text-small">
            <%= t("changed_from", scope: "decidim.enhanced_textwork.paragraphs.tags", previous_name: "#{previous_category.translated_name}").html_safe %>
          </small>
        <% end %>
      </li>
    <% end %>

    <% if has_visible_scopes?(model) %>
      <li>
        <%= link_to resource_locator(model).index(filter: { scope_id: [scope.id] }), title: t("decidim.tags.filter_results_for_scope", resource: translated_attribute(scope.name)) do %>
          <span class="show-for-sr"><%= t "decidim.tags.filter_results_for_scope", resource: translated_attribute(scope.name) %></span>
          <span aria-hidden="true"><%= translated_attribute(scope.name) %></span>
        <% end %>
        <% if previous_scope.present? && show_previous_scope? %>
          &nbsp;
          <small class="text-small">
            <%= t("changed_from", scope: "decidim.enhanced_textwork.paragraphs.tags", previous_name: "#{translated_attribute(previous_scope.name)}").html_safe %>
          </small>
        <% end %>
      </li>
    <% end %>
  </ul>
</figure>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-enhanced_textwork-1.0.5 app/cells/decidim/enhanced_textwork/paragraph_tags/show.erb
decidim-enhanced_textwork-1.0.4 app/cells/decidim/enhanced_textwork/paragraph_tags/show.erb
decidim-enhanced_textwork-1.0.3 app/cells/decidim/enhanced_textwork/paragraph_tags/show.erb
decidim-enhanced_textwork-1.0.2 app/cells/decidim/enhanced_textwork/paragraph_tags/show.erb
decidim-enhanced_textwork-1.0.1 app/cells/decidim/enhanced_textwork/paragraph_tags/show.erb
decidim-enhanced_textwork-1.0.0 app/cells/decidim/enhanced_textwork/paragraph_tags/show.erb