Skip to content
This repository
Browse code

Style fix

  • Loading branch information...
commit f32dd870505971dbae1f9982908219b430e3304c 1 parent 89d6a4f
Bart Zonneveld bartzon authored

Showing 1 changed file with 19 additions and 18 deletions. Show diff stats Hide diff stats

  1. +19 18 app/views/hosts/_host.html.erb
37 app/views/hosts/_host.html.erb
@@ -2,25 +2,26 @@
2 2 <div class="alert alert-<%= host.available ? 'success' : 'error' %>">
3 3 <h3><%= host.name %> (<%= host.available ? 'Available' : 'Not available' %>)</h3>
4 4 <h4><%= host.url %></h4>
5   - </div>
6 5
7   - <%= link_to 'Edit', edit_host_path(host), class: 'btn btn-mini' %>
8   - <%= link_to 'Delete', api_host_path(host), class: 'btn btn-mini', method: :delete, confirm: t('confirm.delete', :model_name => 'host') %>
  6 + <br/>
  7 +
  8 + <%= link_to 'Edit', edit_host_path(host), class: 'btn btn-mini' %>
  9 + <%= link_to 'Delete', api_host_path(host), class: 'btn btn-mini', method: :delete, confirm: t('confirm.delete', :model_name => 'host') %>
9 10
10   - <% if host.available %>
11   - <br/><br/>
12   - <table class="table table-condensed">
13   - <tr>
14   - <td><span class="badge badge-success"><%= host.available_slots %></span> available slots</td>
15   - </tr>
16   - <tr>
17   - <td><span class="badge badge-info"><%= host.total_slots %></span> total slots</td>
18   - </tr>
19   - <tr>
20   - <td><span class="badge badge-default"><%= host.total_slots - host.available_slots %></span> used slots</td>
21   - </tr>
22   - </table>
23   - <% end %>
  11 + <% if host.available %>
  12 + <table class="table table-condensed">
  13 + <tr>
  14 + <td><span class="badge badge-success"><%= host.available_slots %></span> available slots</td>
  15 + </tr>
  16 + <tr>
  17 + <td><span class="badge badge-info"><%= host.total_slots %></span> total slots</td>
  18 + </tr>
  19 + <tr>
  20 + <td><span class="badge badge-default"><%= host.total_slots - host.available_slots %></span> used slots</td>
  21 + </tr>
  22 + </table>
  23 + <% end %>
  24 +
  25 + </div>
24 26
25   -
26 27 <% end %>

0 comments on commit f32dd87

Please sign in to comment.
Something went wrong with that request. Please try again.