Skip to content

Commit

Permalink
Merge pull request #25 from brianstorti/bs-remove-hyphen
Browse files Browse the repository at this point in the history
Remove hyphen from erb template
  • Loading branch information
nickelser authored Oct 25, 2017
2 parents 870f3a6 + 9a0d53c commit 9055f35
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions web/views/index.erb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<tbody>
<% @jobs.each do |job| %>
<% enabled = !@disabled[job.to_s] %>
<% enabled_str = enabled ? 'disable' : 'enable' -%>
<% enabled_str = enabled ? 'disable' : 'enable' %>
<% last_run = @last_runs[job.to_s] %>
<tr class="<%= enabled ? "" : "disabled" %>">
<td><%= h(job) %></td>
Expand All @@ -88,7 +88,7 @@
<form method="POST" style="margin-top: 20px; margin-bottom: 10px;">
<%= csrf_tag %>
<div>
<button type="submit" name="<%= enabled_str -%>" value="<%= job.id -%>" data-confirm="Are you sure you want to <%= enabled_str -%> this job?"><%= enabled_str.capitalize -%></button>
<button type="submit" name="<%= enabled_str %>" value="<%= job.id %>" data-confirm="Are you sure you want to <%= enabled_str %> this job?"><%= enabled_str.capitalize %></button>
</div>
</form>
</td>
Expand All @@ -100,15 +100,15 @@
<div>
<h3>Hosts</h3>
<ul>
<% @hosts.each do |host| -%>
<% @hosts.each do |host| %>
<li>
<strong><%= h(host[:host]) -%></strong> <em>(PID <%= host[:pid] -%>)</em>: last seen <%= relative_time(host[:last_seen]) -%>.
<strong><%= h(host[:host]) %></strong> <em>(PID <%= host[:pid] %>)</em>: last seen <%= relative_time(host[:last_seen]) %>.
</li>
<% end -%>
<% end %>
</ul>
</div>
<div>
<small><%= product_version -%></small>
<small><%= product_version %></small>
</div>
</body>
</html>

0 comments on commit 9055f35

Please sign in to comment.