mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 15:35:46 +07:00
[IMP] runbot: change menu and remove black user_navbar
Useless for employee who don't edit runbot
This commit is contained in:
parent
745d146b4b
commit
e0103ed3f0
@ -235,6 +235,24 @@
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<!-- Replace default menu ( Home / Contactus and co...) with 5 first repos) -->
|
||||
<template id="inherits_branch_in_menu" inherit_id="website.layout" name="Inherits Show top 5 branches in menu">
|
||||
<xpath expr="//t[@t-foreach="website.menu_id.child_id"][@t-as="submenu"]" position="replace">
|
||||
<t t-if="repos" >
|
||||
<t t-foreach="repos[:5]" t-as="re">
|
||||
<li><a t-attf-href="/runbot/repo/{{slug(re)}}"><i class='fa fa-github' /> <t t-esc="re.name.split(':')[1]"/></a></li>
|
||||
</t>
|
||||
</t>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<!-- remove black bar with switcher d'apps -->
|
||||
<template id="inherits_no_black_bar" inherit_id="website.user_navbar" name="Inherits No black user_navbar">
|
||||
<xpath expr="//t[@t-if="website and menu_data"]" position="attributes">
|
||||
<attribute name="groups">base.group_website_publisher</attribute>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="runbot.build_name">
|
||||
<t t-if="bu['state']=='pending'"><i class="text-default fa fa-pause"/> pending</t>
|
||||
<t t-if="bu['state']=='testing'"><i class="text-info fa fa-spinner"/> testing <t t-esc="bu['job']"/> <small t-if="not hide_time"><t t-esc="bu['job_time']"/></small></t>
|
||||
|
Loading…
Reference in New Issue
Block a user