app/views/naf/machines/show.html.erb in naf-2.1.9 vs app/views/naf/machines/show.html.erb in naf-2.1.10
- old
+ new
@@ -52,34 +52,25 @@
<% end %>
</tbody>
</table>
</br>
- <%= render partial: 'naf/log_viewer/log_layout', locals: { record_id: @machine.id, record_type: 'machine' } %>
</div>
<% end %>
<%= render partial: 'naf/shared/application' %>
-<%= render partial: 'naf/shared/auto_resize_width', locals: { div_class: '.scrollable-output' } %>
-<%= render partial: 'naf/log_viewer/log_display',
- locals: {
- logs_url: "#{http_protocol}#{::Logical::Naf::Machine.new(@machine).runner}#{naf.logs_log_parsers_path}",
- record_id: @machine.id,
- record_type: 'machine'
- } %>
<% content_for :javascripts do %>
<script type='text/javascript'>
jQuery(document).ready(function () {
jQuery(document).delegate('.terminate', "click", function(){
var answer = confirm("You are going to mark machine down. Are you sure you want to do this?");
if (!answer) {
return false;
}
var id = <%= @machine.id %>;
- var url = '/job_system/machines/' + id;
jQuery.ajax({
- url: url,
+ url: id,
type: 'POST',
dataType: 'json',
data: { "machine[marked_down]": 1, "terminate": true, "_method": "put" },
success:function (data) {
if (data.success) {