[IMP] runbot: add links to sticky-dashboard

This commit is contained in:
Christophe Simonis 2015-08-05 16:57:50 +02:00
parent 238d6c6fab
commit b8d06e7fa0
2 changed files with 3 additions and 2 deletions

View File

@ -1228,6 +1228,7 @@ class RunbotController(http.Controller):
if 'name' not in r:
r.update({
'name': repo.name,
'base': repo.base,
'testing': count([('repo_id', '=', repo.id), ('state', '=', 'testing')]),
'running': count([('repo_id', '=', repo.id), ('state', '=', 'running')]),
'pending': count([('repo_id', '=', repo.id), ('state', '=', 'pending')]),

View File

@ -494,9 +494,9 @@
</t>
<br/>
<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/>
<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>
</t>
</div>