[IMP] forwardport: flag detached PRs in their dashboard

This is an important bit of information but it was not visible without
going into the backend.

`user-select-none` doesn't work in BS3 but that way it'll be ready for
an eventual update. Currently when hovering the badge the cursor
switches to text selection, and the text is selectable, which is
useless.

Complements 4e235a2 and finishes the fixes for #617
This commit is contained in:
Xavier Morel 2022-06-29 11:09:55 +02:00
parent 4e70b1acbb
commit e8ae5ec263
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1 @@
IMP: flag detached PRs in their dashboard

View File

@ -109,6 +109,11 @@
<a t-att-href="pr.source_id.url">
<span t-field="pr.source_id.display_name"/>
</a>
<span t-if="not pr.parent_id"
class="badge badge-danger user-select-none"
title="A detached PR behaves like a non-forward-port, it has to be approved via the mergebot, this is usually caused by the forward-port having been in conflict or updated.">
DETACHED
</span>
</dd>
</t>
<t t-if="pr.forwardport_ids">