Sha256: adc111eb7857f5a6ff1f0cb33d957a6a43f0ff9a2ca3ec897035453c33048fad
Contents?: true
Size: 579 Bytes
Versions: 6
Compression:
Stored size: 579 Bytes
Contents
class Admin::Sites::Index < Minimal::Template include do def to_html table_for collection do |t| t.column :site t.column :actions, :class => :actions t.row do |r, site| r.cell link_to_site(site) r.cell links_to_actions([:view, :edit, :destroy], site) end unless collection.empty? end end def link_to_site(site) capture { link_to(site.name, url_for([:admin, site])) } end def link_to_view(site) capture { link_to(:'.actions.view', "http://#{site.host}", :class => :view) } end end end
Version data entries
6 entries across 6 versions & 1 rubygems