Sha256: ccdf710fa6f5412c670ff8f960e3db24f22a40af1dc2b13b64b88b4355608cd7
Contents?: true
Size: 1.36 KB
Versions: 1
Compression:
Stored size: 1.36 KB
Contents
<% output = { :iTotalDisplayRecords => @widgets.total_entries || 0, :aaData => @widgets.collect do |widget| link_id = "block_#{widget.id}" nb_pages = widget.page_cols.count [ content_tag(:div, '<div class="image"> <span class="small-icons widget"> </span></div>', :id => link_id, :class => 'some-variants plus'), content_tag(:div, widget.class.human_name.upcase, :class => 'widget-type'), content_tag(:div, link_to(widget.title, [forgeos_cms, :edit, :admin, widget]), :class => 'widget-name'), content_tag(:span, "#{nb_pages.to_s} #{I18n.t('page', :count => nb_pages)}", :class => 'linked_to') + render(:partial => 'admin/blocks/pages.html.haml', :locals => { :link_id => link_id, :block => widget }), link_to('', [forgeos_cms, :duplicate, :admin, widget], :class => 'small-icons duplicate-link') + link_to('', [forgeos_cms, :edit, :admin, widget], :class => 'small-icons edit-link') + link_to('', :url => [forgeos_cms, :admin, widget], :remote => true, :method => :delete, :confirm => I18n.t('widget.destroy.confirm').capitalize, :success => "removedataTablesRow('#destroy_#{link_id}')", :html => { :class => 'small-icons destroy-link', :id => "destroy_#{link_id}" }) ] end } -%> <%= raw output.to_json -%>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
forgeos_cms-1.9.0 | app/views/admin/widgets/index.json.erb |