Permalink
Browse files

Style fix

  • Loading branch information...
1 parent 89d6a4f commit f32dd870505971dbae1f9982908219b430e3304c @bartzon bartzon committed Jul 5, 2012
Showing with 19 additions and 18 deletions.
  1. +19 −18 app/views/hosts/_host.html.erb
View
37 app/views/hosts/_host.html.erb
@@ -2,25 +2,26 @@
<div class="alert alert-<%= host.available ? 'success' : 'error' %>">
<h3><%= host.name %> (<%= host.available ? 'Available' : 'Not available' %>)</h3>
<h4><%= host.url %></h4>
- </div>
- <%= link_to 'Edit', edit_host_path(host), class: 'btn btn-mini' %>
- <%= link_to 'Delete', api_host_path(host), class: 'btn btn-mini', method: :delete, confirm: t('confirm.delete', :model_name => 'host') %>
+ <br/>
+
+ <%= link_to 'Edit', edit_host_path(host), class: 'btn btn-mini' %>
+ <%= link_to 'Delete', api_host_path(host), class: 'btn btn-mini', method: :delete, confirm: t('confirm.delete', :model_name => 'host') %>
- <% if host.available %>
- <br/><br/>
- <table class="table table-condensed">
- <tr>
- <td><span class="badge badge-success"><%= host.available_slots %></span> available slots</td>
- </tr>
- <tr>
- <td><span class="badge badge-info"><%= host.total_slots %></span> total slots</td>
- </tr>
- <tr>
- <td><span class="badge badge-default"><%= host.total_slots - host.available_slots %></span> used slots</td>
- </tr>
- </table>
- <% end %>
+ <% if host.available %>
+ <table class="table table-condensed">
+ <tr>
+ <td><span class="badge badge-success"><%= host.available_slots %></span> available slots</td>
+ </tr>
+ <tr>
+ <td><span class="badge badge-info"><%= host.total_slots %></span> total slots</td>
+ </tr>
+ <tr>
+ <td><span class="badge badge-default"><%= host.total_slots - host.available_slots %></span> used slots</td>
+ </tr>
+ </table>
+ <% end %>
+
+ </div>
-
<% end %>

0 comments on commit f32dd87

Please sign in to comment.