From 3f1da548654a07ff25ddb782af2fee957b47591e Mon Sep 17 00:00:00 2001 From: Rub21 Date: Thu, 3 Sep 2026 12:52:49 +0200 Subject: [PATCH] Allow the traces page partial to be rendered from other controllers --- app/views/traces/_page.html.erb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/views/traces/_page.html.erb b/app/views/traces/_page.html.erb index a7f527041..d41a311b8 100644 --- a/app/views/traces/_page.html.erb +++ b/app/views/traces/_page.html.erb @@ -1,15 +1,16 @@ -<%# locals: (traces:, params:) %> +<%# locals: (traces:, params:, translation_scope: nil) %> - <%= render "pagination", :paginator => traces, :params => params %> + <%= render "pagination", :paginator => traces, :params => params, :translation_scope => translation_scope %>
- <%= render traces.items %> + <%# the partial is named explicitly so this also works when rendered from a controller under Traces:: %> + <%= render :partial => "traces/trace", :collection => traces.items %>
- <%= render "pagination", :paginator => traces, :params => params %> + <%= render "pagination", :paginator => traces, :params => params, :translation_scope => translation_scope %>
-- 2.47.3