Sha256: 911dcb215987da216455da7766ddeaf2207ae3d1b4942940b6e50352d52cc189

Contents?: true

Size: 619 Bytes

Versions: 8

Compression:

Stored size: 619 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>You currently do not have any sites created.</p>" +
        "<p>" + link_to("Create one now &raquo;", new_admin_site_path) + "</p>"
    end
  end
%>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
adva-0.3.2 app/views/admin/sites/index.html.erb
adva-0.3.1 app/views/admin/sites/index.html.erb
adva-0.3.0 app/views/admin/sites/index.html.erb
adva-0.2.4 app/views/admin/sites/index.html.erb
adva-0.2.3 app/views/admin/sites/index.html.erb
adva-0.2.2 app/views/admin/sites/index.html.erb
adva-0.2.1 app/views/admin/sites/index.html.erb
adva-0.2.0 app/views/admin/sites/index.html.erb