[IMP] runbot_merge: add quick link projects on the main dashboard

As the number of projects is starting to grow pretty large, provide
quick links and stable jump targets for projects on the home page /
main dashboard.

Fixes #991
This commit is contained in:
Xavier Morel 2024-11-29 11:57:57 +01:00
parent 679d556c90
commit 876ec92059

View File

@ -77,8 +77,19 @@
<t t-call="website.layout">
<div id="wrap"><div class="container-fluid">
<t t-call="runbot_merge.alerts"/>
<section t-foreach="projects" t-as="project" class="row">
<h1 class="col-md-12"><t t-esc="project.name"/></h1>
<ul class="nav justify-content-center mt-3">
<li t-foreach="projects" t-as="project"
class="nav-item">
<a t-attf-href="#project-{{project.id}}" class="nav-link">
<t t-out="project.name"/>
</a>
</li>
</ul>
<section
t-foreach="projects" t-as="project"
class="row" t-attf-id="project-{{project.id}}"
>
<h1 class="col-md-12"><t t-out="project.name"/></h1>
<div class="col-md-12">
key:
<ul class="list-inline">
@ -91,7 +102,7 @@
<section t-foreach="project.branch_ids" t-as="branch" t-if="branch.active" class="col-md-12">
<h2>
<a t-attf-href="/runbot_merge/{{branch.id}}">
<t t-esc="branch.name"/>
<t t-out="branch.name"/>
</a>
</h2>
<t t-call="runbot_merge.stagings"/>