From cea01472f8ab1e735c46f2ea6740e129b6ed48ff Mon Sep 17 00:00:00 2001 From: Alexander Lutay Date: Fri, 9 Jul 2021 13:52:02 +0200 Subject: [PATCH] TT#122202 Hide 'Back/Contact' buttons for framed mode Otherwise the button 'Back' navigation can bring you to the not necessary places in this context. Change-Id: I82fdf9ec4056f382518d6a1ef6f481ebdbd7a708 --- share/templates/denied_page.tt | 4 ++-- share/templates/error_page.tt | 3 ++- share/templates/notfound_page.tt | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/share/templates/denied_page.tt b/share/templates/denied_page.tt index 6c855326fc..0f0456ace3 100644 --- a/share/templates/denied_page.tt +++ b/share/templates/denied_page.tt @@ -12,7 +12,7 @@ [% c.loc('Sorry, an error has occurred, requested operation denied!') %] - +[% IF ! framed -%]
@@ -27,7 +27,7 @@
- +[% END -%] diff --git a/share/templates/error_page.tt b/share/templates/error_page.tt index be20461917..938b96343a 100644 --- a/share/templates/error_page.tt +++ b/share/templates/error_page.tt @@ -16,13 +16,14 @@

[% c.loc('Details have been logged on the server. If you want to report the error, describe what you were doing or attempting to do just before.') %]

+[% IF ! framed -%]
[% c.loc('Back to Dashboard') %] [% c.loc('Contact Support') %] -
+[% END -%] diff --git a/share/templates/notfound_page.tt b/share/templates/notfound_page.tt index de5a066ff0..6091dd9e64 100644 --- a/share/templates/notfound_page.tt +++ b/share/templates/notfound_page.tt @@ -12,7 +12,7 @@ [% c.loc('Sorry, an error has occurred, Requested page not found!') %] - +[% IF ! framed -%]
@@ -27,7 +27,7 @@
- +[% END -%]