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).
20 lines
1.0 KiB
Plaintext
20 lines
1.0 KiB
Plaintext
%# AlmaLinux external issue reporting: link the failing job to the AlmaLinux
|
|
%# Bug Tracker (https://bugs.almalinux.org, MantisBT). Self-contained - unlike
|
|
%# the openSUSE branding it does not need a report_external_issue helper/plugin,
|
|
%# so no extra Perl plugin has to be packaged. MantisBT cannot prefill the bug
|
|
%# form via GET, so we preselect the matching AlmaLinux-N project and carry the
|
|
%# failing scenario/module in the link tooltip.
|
|
% my $job = stash('job');
|
|
% if ($job) {
|
|
% my ($major) = ($job->VERSION // '') =~ /^(\d+)/;
|
|
% my %project_ids = (8 => 2, 9 => 3, 10 => 4);
|
|
% my $pid = $major ? $project_ids{$major} : undef;
|
|
% my $url = 'https://bugs.almalinux.org/bug_report_page.php';
|
|
% $url .= "?project_id=$pid" if $pid;
|
|
% my $module = stash('moduleid') // '';
|
|
% my $scenario = $job->scenario_name // '';
|
|
% my $label = 'Report bug in the AlmaLinux Bug Tracker';
|
|
% $label .= " (scenario '$scenario'" . ($module ? ", module '$module'" : '') . ')' if $scenario;
|
|
%= stepaction_for($label => $url, 'fa-bug', 'report almalinux_bugtracker')
|
|
% }
|