diff --git a/app/admin/dashboard.rb b/app/admin/dashboard.rb index 4105f2304..9db09a42e 100644 --- a/app/admin/dashboard.rb +++ b/app/admin/dashboard.rb @@ -4,7 +4,7 @@ ActiveAdmin.register_page "Dashboard" do content title: proc { I18n.t("active_admin.dashboard") } do columns do column do - panel "Recent Case Logs" do + panel "Recent logs" do table_for CaseLog.order(updated_at: :desc).limit(10) do column :id column :created_at @@ -17,13 +17,13 @@ ActiveAdmin.register_page "Dashboard" do end column do - panel "Total case logs in progress" do + panel "Total logs in progress" do para CaseLog.in_progress.size end - panel "Total case logs completed" do + panel "Total logs completed" do para CaseLog.completed.size end - panel "Total case logs completed" do + panel "Total logs completed" do pie_chart CaseLog.group(:status).size end end diff --git a/app/controllers/case_logs_controller.rb b/app/controllers/case_logs_controller.rb index 77ccc3d6d..59f91a6bf 100644 --- a/app/controllers/case_logs_controller.rb +++ b/app/controllers/case_logs_controller.rb @@ -31,7 +31,7 @@ class CaseLogsController < ApplicationController render json: { errors: @case_log.errors.messages }, status: :unprocessable_entity end else - render_not_found_json("Case log", params[:id]) + render_not_found_json("Log", params[:id]) end end @@ -43,7 +43,7 @@ class CaseLogsController < ApplicationController if @case_log render json: @case_log, status: :ok else - render_not_found_json("Case log", params[:id]) + render_not_found_json("Log", params[:id]) end end end @@ -67,7 +67,7 @@ class CaseLogsController < ApplicationController render json: { errors: @case_log.errors.messages }, status: :unprocessable_entity end else - render_not_found_json("Case log", params[:id]) + render_not_found_json("Log", params[:id]) end end diff --git a/app/views/case_logs/edit.html.erb b/app/views/case_logs/edit.html.erb index 775a25a1a..bb83d8370 100644 --- a/app/views/case_logs/edit.html.erb +++ b/app/views/case_logs/edit.html.erb @@ -1,4 +1,4 @@ -<% content_for :title, "Case log #{@case_log.id}" %> +<% content_for :title, "Log #{@case_log.id}" %> <%= turbo_frame_tag "case_log_form", target: "_top" do %>