openqa/SOURCES/0001-EL9-AlmaLinux-branding-layout.patch
Andrew Lukoshko e51babfd9d Wire in AlmaLinux web UI branding
Ship and enable the AlmaLinux branding set for the openQA web UI:

- Branding templates (templates/webapi/branding/AlmaLinux/): docbox,
  sponsorbox, style and a self-contained external_reporting that links
  failing jobs to bugs.almalinux.org (preselecting the AlmaLinux-N
  MantisBT project by job version; no reporter plugin dependency).
- Logo asset almalinux.svg installed into assets/images/ (served at
  /images/almalinux.svg).
- Wire the branding-layout patch into the spec: swap the navbar logo for
  the AlmaLinux mark and pull the branding stylesheet into the page head.
- Enable the branding by default via an openqa.ini.d drop-in
  (00-almalinux-branding.ini) so a fresh install is branded out of the box.
- style.html.ep: restore symmetric .navbar-brand>img padding so the navbar
  logo matches the openqa.almalinux.org rendering (openQA 5's bootstrap
  sets padding-top:0, which otherwise enlarges/top-aligns the logo).
2026-07-24 12:56:36 +02:00

24 lines
1.3 KiB
Diff

--- a/templates/webapi/layouts/navbar.html.ep 2026-06-04 10:30:53.000000000 +0200
+++ b/templates/webapi/layouts/navbar.html.ep 2026-07-24 12:14:51.851179791 +0200
@@ -1,7 +1,7 @@
% my $current_user = current_user;
<nav class="navbar navbar-expand-lg navbar-light">
<div class="container-fluid">
- <a class="navbar-brand" href="/"><img src="<%= icon_url 'logo.svg'%>" alt="openQA"></a>
+ <a class="navbar-brand" href="/"><img src="/images/almalinux.svg" alt="openQA"></a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
--- a/templates/webapi/layouts/bootstrap.html.ep 2026-06-04 10:30:53.000000000 +0200
+++ b/templates/webapi/layouts/bootstrap.html.ep 2026-07-24 12:14:51.875750357 +0200
@@ -46,7 +46,8 @@
<link id="favicon-16" rel="icon" href="<%= favicon_url '-16.png' %>" sizes="16x16" type="image/png">
<link id="favicon-svg" rel="icon" href="<%= favicon_url '.svg' %>" sizes="any" type="image/svg+xml">
- </head>
+ %= include_branding 'style'
+</head>
<body>
%= include 'layouts/navbar'
<div class="container-fluid" id="content">