From b76a492c8906f2d9885b7779405f97ff305324ac Mon Sep 17 00:00:00 2001 From: qinmingyuan Date: Tue, 24 Sep 2024 20:45:32 +0800 Subject: [PATCH] dj --- app/controllers/com/panel/detectors_controller.rb | 2 +- app/views/job/panel/jobs/_show/_breadcrumb.html.erb | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/com/panel/detectors_controller.rb b/app/controllers/com/panel/detectors_controller.rb index 3b62289d..057dc147 100644 --- a/app/controllers/com/panel/detectors_controller.rb +++ b/app/controllers/com/panel/detectors_controller.rb @@ -2,7 +2,7 @@ module Com class Panel::DetectorsController < Panel::BaseController before_action :set_detector, only: [:show, :edit, :update, :destroy, :actions] before_action :set_new_detector, only: [:new, :create] - + def new @detector.detector_bots.build end diff --git a/app/views/job/panel/jobs/_show/_breadcrumb.html.erb b/app/views/job/panel/jobs/_show/_breadcrumb.html.erb index c8e47f78..a497b4e4 100644 --- a/app/views/job/panel/jobs/_show/_breadcrumb.html.erb +++ b/app/views/job/panel/jobs/_show/_breadcrumb.html.erb @@ -1,4 +1,3 @@ -
  • <%= link_to t('.queues.index.title'), { controller: 'job/panel/queues', action: 'index' } %>
  • <%= @queue.name %>
  • <%= link_to t('.jobs.index.title'), { controller: 'jobs' } %>
  • <%= t('.title') %>
  • \ No newline at end of file