Sha256: a9feaf265ea388bd9e943ad25786b7d935544e60faabc85a3e26b0f9a2a635cd

Contents?: true

Size: 1.32 KB

Versions: 22

Compression:

Stored size: 1.32 KB

Contents

<% title _("Snapshots: #{@host.name}") %>
<%= title_actions(
            button_group(link_to("Take Snapshot", "/foreman_xen/snapshots/#{@host.id}/new", :id => "takeSnapshotButton", :class => "btn btn-success"),
                         link_to_if_authorized(_("Back to host"), hash_for_host_path(:id => @host), :title => _("Back to host"), :class => 'btn btn-default')
            )) %>

<table class="table table-hover">
  <tbody>
  <th>Name</th>
  <th>Snapshot Time</th>
  <th>Actions</th>
  <% @snapshots.each do |snapshot| %>
      <tr>
        <td><%= h snapshot.name %></a></td>
        <td><%= h "#{snapshot.snapshot_time.to_date} #{snapshot.snapshot_time.to_time} " %></a></td>
        <td>
          <div class="form-group">
            <%= link_to("Revert", "/foreman_xen/snapshots/#{@host.id}/revert/#{snapshot.reference}", :id => "revertSnapshotButton", :class => "btn btn-danger", data: { confirm: "Confirm revert to #{snapshot.name}? Please note that all changes since the snapshot time will be lost, and the system will be restarted." }) %>
            <%= link_to("Delete", "/foreman_xen/snapshots/#{@host.id}/delete/#{snapshot.reference}", :id => "deleteSnapshotButton", :class => "btn btn-danger", data: { confirm: "Delete snapshot #{snapshot.name}?" }) %>
          </div>
        </td>
      </tr>
  <% end %>
  </tbody>
</table>

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
foreman_xen-1.0.1 app/views/foreman_xen/snapshots/show.html.erb
foreman_xen-1.0.0 app/views/foreman_xen/snapshots/show.html.erb
foreman_xen-0.7.1 app/views/foreman_xen/snapshots/show.html.erb
foreman_xen-0.7.0 app/views/foreman_xen/snapshots/show.html.erb
foreman_xen-0.5.4 app/views/foreman_xen/snapshots/show.html.erb
foreman_xen-0.6.1 app/views/foreman_xen/snapshots/show.html.erb
foreman_xen-0.6.0 app/views/foreman_xen/snapshots/show.html.erb
foreman_xen-0.5.3 app/views/foreman_xen/snapshots/show.html.erb
foreman_xen-0.5.2 app/views/foreman_xen/snapshots/show.html.erb
foreman_xen-0.5.1 app/views/foreman_xen/snapshots/show.html.erb
foreman_xen-0.5.0 app/views/foreman_xen/snapshots/show.html.erb
foreman_xen-0.3.2 app/views/foreman_xen/snapshots/show.html.erb
foreman_xen-0.4.1 app/views/foreman_xen/snapshots/show.html.erb
foreman_xen-0.4.0 app/views/foreman_xen/snapshots/show.html.erb
foreman_xen-0.3.1 app/views/foreman_xen/snapshots/show.html.erb
foreman_xen-0.3.0 app/views/foreman_xen/snapshots/show.html.erb
foreman_xen-0.2.4 app/views/foreman_xen/snapshots/show.html.erb
foreman_xen-0.1.8 app/views/foreman_xen/snapshots/show.html.erb
foreman_xen-0.1.7 app/views/foreman_xen/snapshots/show.html.erb
foreman_xen-0.2.3 app/views/foreman_xen/snapshots/show.html.erb