Sha256: 98415fa0c7bcd87b90961b353903f19484387f88a84bd2d0ea18d476d7f6aa6e

Contents?: true

Size: 1.21 KB

Versions: 12

Compression:

Stored size: 1.21 KB

Contents

<div class="row">
  <div class="small-12 columns">
    <h1>Sites</h1>
    <%= link_to 'New', new_site_path, class: 'button' %>
  </div>
</div>

<% if notice %>
  <div class="row">
    <div class="small-12 columns">
      <div class="callout success notice">
        <p><%= notice %></p>
      </div>
    </div>
  </div>
<% end %>

<div class="row">
  <div class="small-12 columns">
    <% if @sites.size > 0 %>
      <table>
        <tbody>
          <% @sites.each do |site| %>
            <tr>
              <td><% if site.default? %><strong>Default:</strong> <% end %><%= site.name %></td>
              <td><%= site.domain %></td>
              <td align="right" class="action_links">
                <% if site.default? %>
                  <%= link_to 'Remove Default', remove_default_site_path(site) %>
                <% else %>
                  <%= link_to 'Set as Default', set_default_site_path(site) %>
                <% end %>
                <%= link_to 'Edit', edit_site_path(site) %>
                <%= link_to_destroy 'Destroy', site %>
              </td>
            </tr>
          <% end %>
        </tbody>
      </table>
    <% else %>
      <p>No additional sites have been added.</p>
    <% end %>
  </div>
</div>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
guts-1.3.6 app/views/guts/sites/index.html.erb
guts-1.3.5 app/views/guts/sites/index.html.erb
guts-1.3.4 app/views/guts/sites/index.html.erb
guts-1.3.3 app/views/guts/sites/index.html.erb
guts-1.3.2 app/views/guts/sites/index.html.erb
guts-1.3.1 app/views/guts/sites/index.html.erb
guts-1.3.0 app/views/guts/sites/index.html.erb
guts-1.2.2 app/views/guts/sites/index.html.erb
guts-1.2.1 app/views/guts/sites/index.html.erb
guts-1.2.0 app/views/guts/sites/index.html.erb
guts-1.1.1 app/views/guts/sites/index.html.erb
guts-1.1.0 app/views/guts/sites/index.html.erb