Sha256: 58c73c46477e9b100c5fda8a4070f737119b9b262c6f4238ad48e64661bddd26

Contents?: true

Size: 608 Bytes

Versions: 5

Compression:

Stored size: 608 Bytes

Contents

<%=
  table_for @sites do |t|
    t.column :name, :host, :actions

    t.row do |r, site|
      r.cell link_to_show(site.name, site, :class => 'site')
      r.cell site.host
      r.cell link_to_show(site, url: "//#{site.host}") + "\n".html_safe +
        links_to_actions([:edit, :delete], site).html_safe
    end

    t.foot.row do |r|
      r.cell will_paginate(@sites), :class => :pagination, :colspan => :all
    end

    t.empty :p, :class => 'empty' do
      "<p>" + t(:'adva.sites.no_sites') + "</p>" +
        "<p>" + link_to("Create one now &raquo;", new_admin_site_path) + "</p>"
    end
  end
%>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
adva-0.1.4 app/views/admin/sites/index.html.erb
adva-0.1.3 app/views/admin/sites/index.html.erb
adva-0.1.2 app/views/admin/sites/index.html.erb
adva-0.1.1 app/views/admin/sites/index.html.erb
adva-0.1.0 app/views/admin/sites/index.html.erb