web/views/index.erb in zhong-0.2.3 vs web/views/index.erb in zhong-0.2.4

- old
+ new

@@ -68,11 +68,11 @@ </tr> </thead> <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> <td> <% if job.every %> @@ -86,11 +86,11 @@ <td><%= relative_time(job.next_at) %></td> <td> <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> </tr> <% end %> @@ -98,17 +98,17 @@ </table> </div> <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>