Sha256: adb29e20f96542bfeeca7ba0e6bddd84773379ab4a67d310726b21c1b4f7dec5

Contents?: true

Size: 910 Bytes

Versions: 498

Compression:

Stored size: 910 Bytes

Contents

<h1>Sites</h1>

<form action='/admin/sites' method='get' class='search_form'>
<input type='text' name='name_like' placeholder='Name' />
<input type='submit' value='Search' />
</form>

<p><a href='/admin/sites/new'>New Site</a></p>

<% if @sites && @sites.count > 0 %>
  <table class='data' id='users_table'>
    <tr>
      <%= raw @pager.sortable_table_headings({
  				'name'               => 'Name',
  				'description'        => 'Description',
  				'name, description'  => 'Domains'
  			})
  		%>
    </tr>
  <% @sites.each do |site| %>
    <tr onclick="window.location='/admin/sites/<%= site.id %>';">
      <td><%= site.name %></td>
      <td><%= site.description %></td>
      <td><%= raw site.domains ? site.domains.collect{ |d| d.domain }.join('<br />') : '' %></td>    
    </tr>
  <% end %>
  </table>
  <p><%= raw @pager.generate %></p>
<% else %>
  <p>There are no sites right now.</p>
<% end %>

Version data entries

498 entries across 498 versions & 1 rubygems

Version Path
caboose-cms-0.7.64 app/views/caboose/sites/admin_index.html.erb
caboose-cms-0.7.63 app/views/caboose/sites/admin_index.html.erb
caboose-cms-0.7.62 app/views/caboose/sites/admin_index.html.erb
caboose-cms-0.7.61 app/views/caboose/sites/admin_index.html.erb
caboose-cms-0.7.60 app/views/caboose/sites/admin_index.html.erb
caboose-cms-0.7.59 app/views/caboose/sites/admin_index.html.erb
caboose-cms-0.7.58 app/views/caboose/sites/admin_index.html.erb
caboose-cms-0.7.57 app/views/caboose/sites/admin_index.html.erb
caboose-cms-0.7.55 app/views/caboose/sites/admin_index.html.erb
caboose-cms-0.7.54 app/views/caboose/sites/admin_index.html.erb
caboose-cms-0.7.53 app/views/caboose/sites/admin_index.html.erb
caboose-cms-0.7.52 app/views/caboose/sites/admin_index.html.erb
caboose-cms-0.7.51 app/views/caboose/sites/admin_index.html.erb
caboose-cms-0.7.50 app/views/caboose/sites/admin_index.html.erb
caboose-cms-0.7.49 app/views/caboose/sites/admin_index.html.erb
caboose-cms-0.7.48 app/views/caboose/sites/admin_index.html.erb
caboose-cms-0.7.47 app/views/caboose/sites/admin_index.html.erb
caboose-cms-0.7.46 app/views/caboose/sites/admin_index.html.erb
caboose-cms-0.7.45 app/views/caboose/sites/admin_index.html.erb
caboose-cms-0.7.44 app/views/caboose/sites/admin_index.html.erb