mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[IMP] runbot: add buttons to compare with next line on build_search page
This commit is contained in:
parent
05c0c29e0f
commit
d4f1f01b46
@ -376,6 +376,18 @@
|
||||
<t t-set="klass" t-value="'btn-group-ssm'"/>
|
||||
</t>
|
||||
</td>
|
||||
<td>
|
||||
<t t-set="commits" t-value="build.params_id.commit_link_ids.commit_id.sorted(key=lambda c: c.repo_id.id)"/>
|
||||
<t t-if="build_index+1 < len(builds)" t-set="previous_commits" t-value="list(builds[build_index+1].params_id.commit_link_ids.commit_id.sorted(key=lambda c: c.repo_id.id))"/>
|
||||
<t t-else="" t-set="previous_commits" t-value="[]"/>
|
||||
<t t-foreach="zip(previous_commits, commits)" t-as="compare">
|
||||
<t t-set="previous_commit" t-value="compare[0]"/>
|
||||
<t t-set="commit" t-value="compare[1]"/>
|
||||
<a t-attf-href="https://{{commit.repo_id.main_remote_id.base_url}}/compare/{{previous_commit.name}}..{{commit.name}}" t-att-title="commit.repo_id.name">
|
||||
<i class="fa fa-plus"/>
|
||||
</a>
|
||||
</t>
|
||||
</td>
|
||||
</tr>
|
||||
</t>
|
||||
</table>
|
||||
|
Loading…
Reference in New Issue
Block a user