Add AlmaLinux branding layout patch (not yet wired into spec)

First increment toward baking AlmaLinux branding into the package.
Patches the two webui layout templates so a `branding = AlmaLinux`
setup renders the AlmaLinux look:
- navbar.html.ep: brand logo -> /images/almalinux.svg
- bootstrap.html.ep: include the branding `style` partial in <head>

Not referenced by the spec yet; the branding source files, %install
steps and %files wiring will follow in a subsequent change.
This commit is contained in:
Andrew Lukoshko 2026-07-24 12:16:58 +02:00
parent 7c5bee8c65
commit 8d19a92e7e

View File

@ -0,0 +1,23 @@
--- 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="AlmaLinux" style="height:34px"></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">