mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[IMP] runbot: add a static run link for documentation builds
This commit is contained in:
parent
847622552f
commit
d9a09806e2
@ -217,6 +217,8 @@ class BuildResult(models.Model):
|
||||
|
||||
database_ids = fields.One2many('runbot.database', 'build_id')
|
||||
|
||||
static_run = fields.Char('Static run URL')
|
||||
|
||||
@api.depends('params_id.config_id')
|
||||
def _compute_log_list(self): # storing this field because it will be access trhoug repo viewn and keep track of the list at create
|
||||
for build in self:
|
||||
|
@ -178,7 +178,10 @@
|
||||
<a t-if="bu.local_state == 'running' and bu.database_ids" t-attf-href="http://{{sorted(bu.mapped('database_ids.name'))[0]}}.{{bu.host}}" class="btn btn-primary" title="Sign in on this build" aria-label="Sign in on this build">
|
||||
<i class="fa fa-sign-in"/>
|
||||
</a>
|
||||
<a t-if="bu.local_state=='done' and bu.requested_action != 'wake_up'" href="#" data-runbot="wakeup" t-att-data-runbot-build="bu.id" class="btn btn-default" title="Wake up this build" aria-label="Wake up this build">
|
||||
<a t-if="bu.static_run" t-att-href="bu.static_run" class="btn btn-primary" title="View result" aria-label="View result">
|
||||
<i class="fa fa-sign-in"/>
|
||||
</a>
|
||||
<a t-if="bu.local_state=='done' and bu.requested_action != 'wake_up' and bu.database_ids" href="#" data-runbot="wakeup" t-att-data-runbot-build="bu.id" class="btn btn-default" title="Wake up this build" aria-label="Wake up this build">
|
||||
<i class="fa fa-coffee"/>
|
||||
</a>
|
||||
<a t-attf-href="/runbot/build/{{bu['id']}}" class="btn btn-default" title="Build details" aria-label="Build details">
|
||||
|
Loading…
Reference in New Issue
Block a user