mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +07:00
[IMP] runbot: add links to sticky-dashboard
This commit is contained in:
parent
238d6c6fab
commit
b8d06e7fa0
@ -1228,6 +1228,7 @@ class RunbotController(http.Controller):
|
|||||||
if 'name' not in r:
|
if 'name' not in r:
|
||||||
r.update({
|
r.update({
|
||||||
'name': repo.name,
|
'name': repo.name,
|
||||||
|
'base': repo.base,
|
||||||
'testing': count([('repo_id', '=', repo.id), ('state', '=', 'testing')]),
|
'testing': count([('repo_id', '=', repo.id), ('state', '=', 'testing')]),
|
||||||
'running': count([('repo_id', '=', repo.id), ('state', '=', 'running')]),
|
'running': count([('repo_id', '=', repo.id), ('state', '=', 'running')]),
|
||||||
'pending': count([('repo_id', '=', repo.id), ('state', '=', 'pending')]),
|
'pending': count([('repo_id', '=', repo.id), ('state', '=', 'pending')]),
|
||||||
|
@ -494,9 +494,9 @@
|
|||||||
</t>
|
</t>
|
||||||
<br/>
|
<br/>
|
||||||
<i class="fa fa-envelope-o"></i>
|
<i class="fa fa-envelope-o"></i>
|
||||||
<span t-esc="bu['subject'][:32] + ('...' if bu['subject'][32:] else '') " t-att-title="bu['subject']"/>
|
<a t-attf-href="https://#{repo['base']}/commit/#{bu['name']}"><t t-esc="bu['subject'][:32] + ('...' if bu['subject'][32:] else '') " t-att-title="bu['subject']"/></a>
|
||||||
<br/>
|
<br/>
|
||||||
<t t-call="runbot.build_name"/> — <small><t t-esc="bu['dest']"/> on <t t-esc="bu['host']"/></small>
|
<t t-call="runbot.build_name"/> — <small><a t-attf-href="/runbot/build/{{bu['id']}}"><t t-esc="bu['dest']"/></a> on <t t-esc="bu['host']"/> <a t-if="bu['state'] == 'running'" t-attf-href="http://{{bu['domain']}}/?db={{bu['dest']}}-all"><i class="fa fa-sign-in"></i></a></small>
|
||||||
</div>
|
</div>
|
||||||
</t>
|
</t>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user