<h1>Wordpress installations</h1>

<div class="nav nav-pills">
  <li class="active"><%= link_to 'Register a new Installation', new_wp_installation_path %></li>
</div>

<table class="table table-hover" id="wp-installations-list">
  <thead>
    <tr>
      <th>Name</th>
      <th>URL</th>
      <th>Actions</th>
    </tr>
  </thead>
  <tbody>
    <% @wp_installations.each do |wp| %>
      <tr id="wp_installation_<%= wp.id %>">
        <td><%= wp.name %></td>
        <td><%= wp.url %></td>
        <td>
          <%= link_to "Check for updates", new_wp_installation_report_path(wp), class: 'btn btn-mini btn-primary' %>
          <%= link_to "Edit", edit_wp_installation_path(wp), class: 'btn btn-mini' %>
          <%= link_to "Unregister", wp_installation_path(wp), method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-mini btn-danger' %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>




<h1>Wordpress installations</h1>

<div class="nav nav-pills">
  <li class="active"><%= link_to 'Register a new Installation', new_wp_installation_path %></li>
</div>

<table class="table table-hover" id="wp-installations-list">
  <thead>
    <tr>
      <th>Name</th>
      <th>URL</th>
      <th>Actions</th>
    </tr>
  </thead>
  <tbody>
    <% @wp_installations.each do |wp| %>
      <tr id="wp_installation_<%= wp.id %>">
        <td><%= wp.name %></td>
        <td><%= wp.url %></td>
        <td>
          <%= link_to "Check for updates", new_wp_installation_report_path(wp), class: 'btn btn-mini btn-primary', data: { disable_with: "<i class='icon-spinner icon-spin'></i> fetching..." } %>
          <%= link_to "Edit", edit_wp_installation_path(wp), class: 'btn btn-mini' %>
          <%= link_to "Unregister", wp_installation_path(wp), method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-mini btn-danger' %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>




Disable update check link during check
Disable update check link during check

using some UJS

fixes #45
