[IMP] playground: reduce duplication in responsive sample

This commit is contained in:
Géry Debongnie
2019-07-08 14:16:12 +02:00
parent 7245ccf8f9
commit be2fc965b1
+6 -4
View File
@@ -1000,17 +1000,19 @@ const RESPONSIVE_XML = `<templates>
</div>
<div t-name="App" class="app" t-att-class="{mobile: env.isMobile, desktop: !env.isMobile}">
<t t-set="maincontent">
<FormView />
<Chatter />
</t>
<Navbar/>
<ControlPanel/>
<div class="content-wrapper" t-if="!env.isMobile">
<div class="content">
<FormView />
<Chatter />
<t t-raw="maincontent"/>
</div>
</div>
<t t-else="1">
<FormView />
<Chatter />
<t t-raw="maincontent"/>
</t>
</div>
</templates>