mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[IMP] runbot: add rebuild button on build page
When examining a particular build with the build view, one can be frustrated being forced to navigate the frontend page to ask for a rebuild. With this commit, the rebuild menu entry is also visible on the build page when the build is the last one of the branch. Also the build host is now visible on the build page for the same usability reason.
This commit is contained in:
parent
af8c62e4ad
commit
c5e645df9e
@ -198,7 +198,8 @@ class Runbot(http.Controller):
|
||||
'build': self.build_info(build),
|
||||
'br': {'branch': build.branch_id},
|
||||
'logs': Logging.sudo().browse(logging_ids).ids,
|
||||
'other_builds': other_builds.ids
|
||||
'other_builds': other_builds.ids,
|
||||
'bu_index': 0 if build == build_ids[0] else -1
|
||||
}
|
||||
return request.render("runbot.build", context)
|
||||
|
||||
|
@ -105,7 +105,6 @@
|
||||
<div class="btn-group">
|
||||
<t t-call="runbot.build_button">
|
||||
<t t-set="bu" t-value="build"/>
|
||||
<t t-set="bu_index" t-value="-1"/>
|
||||
<t t-set="klass" t-value="''"/>
|
||||
</t>
|
||||
</div>
|
||||
@ -167,6 +166,7 @@
|
||||
Subject: <t t-esc="build['subject']"/><br/>
|
||||
Author: <t t-esc="build['author']"/><br/>
|
||||
Committer: <t t-esc="build['committer']"/><br/>
|
||||
Build host: <t t-esc="build['host']"/><br/>
|
||||
</p>
|
||||
<p t-if="build['duplicate_of']">Duplicate of <a t-attf-href="/runbot/build/#{build['duplicate_of'].id}"><t t-esc="build['duplicate_of'].dest"/></a></p>
|
||||
<table class="table table-condensed table-striped">
|
||||
|
Loading…
Reference in New Issue
Block a user