[IMP] runbot: change menu and remove black user_navbar

Useless for employee who don't edit runbot
This commit is contained in:
Jeremy Kersten 2015-04-13 18:04:55 +02:00
parent 745d146b4b
commit e0103ed3f0

View File

@ -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=&quot;website.menu_id.child_id&quot;][@t-as=&quot;submenu&quot;]" 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=&quot;website and menu_data&quot;]" 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>