Sha256: 7cc5f374abb5d4381d5a1f8221c0f30be76b7962e4c245242ca3d063a4dba1c3
Contents?: true
Size: 1.05 KB
Versions: 1
Compression:
Stored size: 1.05 KB
Contents
<% p = params.dup %> <% if Alchemy::Attachment.tag_counts.any? %> <h2><%= _t("Filter by tag") %></h2> <%= js_filter_field '#tag_list li' %> <ul> <% Alchemy::Attachment.tag_counts.each do |t| %> <% attachment_tags = filtered_by_tag?(t) ? tag_filter(remove: t) : tag_filter(add: t) %> <%= content_tag 'li', name: t.name, class: p[:tagged_with].try(:split, ',').try(:include?, t.name) ? 'active' : nil do %> <%= link_to( "#{t.name} (#{t.count})", url_for( p.delete_if { |k, v| k == "page" }.merge( action: 'index', tagged_with: attachment_tags ) ), remote: request.xhr?, class: 'please_wait' ) %> <% end %> <% end %> </ul> <% if p[:tagged_with].present? %> <%= link_to( render_icon('delete-small') + _t('Remove tag filter'), url_for(p.delete_if { |k, v| k == "tagged_with" }.merge(action: 'index')), remote: request.xhr?, class: 'button small with_icon please_wait' ) %> <% end %> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alchemy_cms-2.6.0.rc5 | app/views/alchemy/admin/attachments/_tag_list.html.erb |