From e49c583b5b6e15312d3b398cec540644a520e02e Mon Sep 17 00:00:00 2001 From: William Braeckman Date: Fri, 3 Jan 2025 11:09:11 +0100 Subject: [PATCH] [FIX] runbot: replace target new with _blank `target="new"` had the very confusing behavior of updating the same tab within the same browser context (tab). The commit replaces all `target="new"` occurences with `target="_blank"` within the runbot templates. See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#target --- runbot/templates/batch.xml | 2 +- runbot/templates/branch.xml | 2 +- runbot/templates/build.xml | 4 ++-- runbot/templates/build_error.xml | 4 ++-- runbot/templates/bundle.xml | 4 ++-- runbot/templates/commit.xml | 2 +- runbot/templates/dashboard.xml | 2 +- runbot/templates/utils.xml | 2 +- 8 files changed, 11 insertions(+), 11 deletions(-) diff --git a/runbot/templates/batch.xml b/runbot/templates/batch.xml index 4bc23496..d64ec194 100644 --- a/runbot/templates/batch.xml +++ b/runbot/templates/batch.xml @@ -13,7 +13,7 @@   + t-attf-href="/odoo/runbot.batch/{{batch.id}}?menu_id={{env['ir.model.data']._xmlid_to_res_id('runbot.runbot_menu_root')}}" class="btn btn-default btn-sm" target="_blank" title="View Batch in Backend"> diff --git a/runbot/templates/branch.xml b/runbot/templates/branch.xml index 30e073ca..78e0948e 100644 --- a/runbot/templates/branch.xml +++ b/runbot/templates/branch.xml @@ -12,7 +12,7 @@ diff --git a/runbot/templates/build.xml b/runbot/templates/build.xml index 79381982..c42471ce 100644 --- a/runbot/templates/build.xml +++ b/runbot/templates/build.xml @@ -327,10 +327,10 @@ This error is already . - - + () diff --git a/runbot/templates/build_error.xml b/runbot/templates/build_error.xml index bda38c1d..3a4a4711 100644 --- a/runbot/templates/build_error.xml +++ b/runbot/templates/build_error.xml @@ -36,7 +36,7 @@
+ t-attf-href="/odoo/runbot.build.error/{{build_error.id}}?menu_id={{env['ir.model.data']._xmlid_to_res_id('runbot.runbot_menu_root')}}" target="_blank" title="View in Backend"> @@ -113,7 +113,7 @@

Team + t-attf-href="/odoo/runbot.team/{{team.id}}?menu_id={{env['ir.model.data']._xmlid_to_res_id('runbot.runbot_menu_root')}}" target="_blank" title="View in Backend">

diff --git a/runbot/templates/bundle.xml b/runbot/templates/bundle.xml index 053e75fb..b8c411eb 100644 --- a/runbot/templates/bundle.xml +++ b/runbot/templates/bundle.xml @@ -12,7 +12,7 @@