[Bps-public-commit] rt-extension-terminaltheme branch, master, updated. f9b035c2ace039d0735fa57d39ff0ece3dbbf04a

? sunnavy sunnavy at bestpractical.com
Thu Mar 11 12:19:44 EST 2021


The branch, master has been updated
       via  f9b035c2ace039d0735fa57d39ff0ece3dbbf04a (commit)
      from  87abea2130570053041cbf7fb58fe08812210db6 (commit)

Summary of changes:
 html/Callbacks/RT-Extension-TerminalTheme/Elements/Header/Head    | 8 ++++++++
 ...request-tracker-logo.svg => terminal-request-tracker-logo.svg} | 0
 2 files changed, 8 insertions(+)
 create mode 100644 html/Callbacks/RT-Extension-TerminalTheme/Elements/Header/Head
 rename static/images/{request-tracker-logo.svg => terminal-request-tracker-logo.svg} (100%)

- Log -----------------------------------------------------------------
commit f9b035c2ace039d0735fa57d39ff0ece3dbbf04a
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Fri Mar 12 01:14:36 2021 +0800

    Use terminal logo only in terminal theme

diff --git a/html/Callbacks/RT-Extension-TerminalTheme/Elements/Header/Head b/html/Callbacks/RT-Extension-TerminalTheme/Elements/Header/Head
new file mode 100644
index 0000000..81ac4a4
--- /dev/null
+++ b/html/Callbacks/RT-Extension-TerminalTheme/Elements/Header/Head
@@ -0,0 +1,8 @@
+<%INIT>
+return unless RT->Config->Get( 'WebDefaultStylesheet', $session{CurrentUser} ) =~ /^terminal-(?:light|dark)$/;
+$ARGSRef->{LogoURL} = RT->Config->Get('WebImagesURL') . "terminal-request-tracker-logo.svg";
+</%INIT>
+
+<%ARGS>
+$ARGSRef
+</%ARGS>
diff --git a/static/images/request-tracker-logo.svg b/static/images/terminal-request-tracker-logo.svg
similarity index 100%
rename from static/images/request-tracker-logo.svg
rename to static/images/terminal-request-tracker-logo.svg

-----------------------------------------------------------------------


More information about the Bps-public-commit mailing list