Sha256: beaa492c1da74b31b96330db05511b3121b42cb9f5e0fa6e991c2ba1f02c3c8f
Contents?: true
Size: 731 Bytes
Versions: 59
Compression:
Stored size: 731 Bytes
Contents
<% category ||= show read ||= false categories = [params[:category]].flatten.compact active = categories.flatten.member?(category.label) %> <div class='category <%= read && active ? 'active' : nil %>' id="<%= dom_id(category)%>"> <% if read %> <% categories = active ? categories.reject{|c| c == category.label} : categories << category.label %> <%= link_to category.label, "?#{{:category => categories}.to_param}" %> <% else %> <%= link_to category.label, edit_cms_admin_site_category_path(@site, category), :remote => true %> <%= link_to 'x', cms_admin_site_category_path(@site, category), :method => :delete, :remote => true, :confirm => t('.are_you_sure'), :class => 'delete' %> <% end %> </div>
Version data entries
59 entries across 59 versions & 1 rubygems