mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +07:00
[IMP] runbot: improve log message layout
This commit is contained in:
parent
cf261d8d60
commit
4d4d062290
@ -283,10 +283,10 @@
|
|||||||
<t t-set="path" t-value="l.path.replace('/data/build/%s/' % repo_name, '')"/>
|
<t t-set="path" t-value="l.path.replace('/data/build/%s/' % repo_name, '')"/>
|
||||||
<t t-set="href" t-value="'https://%s/blob/%s/%s#L%s' % (repo_base_url, commit_hash, path, l.line)"/>
|
<t t-set="href" t-value="'https://%s/blob/%s/%s#L%s' % (repo_base_url, commit_hash, path, l.line)"/>
|
||||||
</t>
|
</t>
|
||||||
<a t-att-href="href" t-att-title="l.func"><t t-esc="l.name"/>:<t t-esc="l.line"/></a>
|
<a t-att-href="href" t-attf-title="Func: {{l.func}}"><t t-esc="l.name"/>:<t t-esc="l.line"/></a>
|
||||||
</t>
|
</t>
|
||||||
</t>
|
</t>
|
||||||
<t t-if="l.type == 'link' and len(l.message.split('$$')) == 3">
|
<span class="log_message" t-if="l.type == 'link' and len(l.message.split('$$')) == 3">
|
||||||
<t t-set="message" t-value="l.message.split('$$')"/>
|
<t t-set="message" t-value="l.message.split('$$')"/>
|
||||||
<t t-if="message[1].startswith('fa-')">
|
<t t-if="message[1].startswith('fa-')">
|
||||||
<t t-esc="message[0]"/>
|
<t t-esc="message[0]"/>
|
||||||
@ -302,9 +302,9 @@
|
|||||||
</a>
|
</a>
|
||||||
<t t-esc="message[2]"/>
|
<t t-esc="message[2]"/>
|
||||||
</t>
|
</t>
|
||||||
</t>
|
</span>
|
||||||
<t t-elif="l.type == 'markdown'" t-out="l._markdown()"/>
|
<span class="log_message" t-elif="l.type == 'markdown'" t-out="l._markdown()"/>
|
||||||
<t t-else="">
|
<span class="log_message" t-else="">
|
||||||
<t t-if="'\n' not in l.message" t-esc="l.message"/>
|
<t t-if="'\n' not in l.message" t-esc="l.message"/>
|
||||||
<pre t-if="'\n' in l.message" style="margin:0;padding:0; border: none;"><t t-esc="l.message"/></pre>
|
<pre t-if="'\n' in l.message" style="margin:0;padding:0; border: none;"><t t-esc="l.message"/></pre>
|
||||||
<t t-if="l.type == 'subbuild' and nb_subbuild <= 20 and build.local_result != 'ok' and subbuild.sudo().error_log_ids">
|
<t t-if="l.type == 'subbuild' and nb_subbuild <= 20 and build.local_result != 'ok' and subbuild.sudo().error_log_ids">
|
||||||
@ -330,12 +330,12 @@
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</t>
|
</t>
|
||||||
</t>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
<td t-attf-class="bg-{{message_class.strip() or logclass}}-subtle">
|
<td t-attf-class="bg-{{message_class.strip() or logclass}}-subtle">
|
||||||
<t t-if="l.level in ('CRITICAL', 'ERROR', 'WARNING') and not l.with_context(active_test=False).error_id">
|
<t t-if="l.level in ('CRITICAL', 'ERROR', 'WARNING') and not l.with_context(active_test=False).error_id">
|
||||||
<small>
|
<small>
|
||||||
<a groups="runbot.group_runbot_admin" t-attf-href="/runbot/parse_log/{{l.id}}" class="sm" title="Parse this log line to follow this error.">
|
<a groups="runbot.group_runbot_5admin" t-attf-href="/runbot/parse_log/{{l.id}}" class="sm" title="Parse this log line to follow this error.">
|
||||||
<i t-attf-class="fa fa-magic"/>
|
<i t-attf-class="fa fa-magic"/>
|
||||||
</a>
|
</a>
|
||||||
</small>
|
</small>
|
||||||
|
Loading…
Reference in New Issue
Block a user