diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 17:14:58 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 17:14:58 +0700 |
| commit | 1ca3b3df3421961caec3b747a364071c80f5c7da (patch) | |
| tree | 6778a1f0f3f9b4c6e26d6d87ccde16e24da6c9d6 /muk_web_theme/template | |
| parent | b57188be371d36d96caac4b8d65a40745c0e972c (diff) | |
initial commit
Diffstat (limited to 'muk_web_theme/template')
| -rw-r--r-- | muk_web_theme/template/assets.xml | 88 | ||||
| -rw-r--r-- | muk_web_theme/template/web.xml | 41 |
2 files changed, 129 insertions, 0 deletions
diff --git a/muk_web_theme/template/assets.xml b/muk_web_theme/template/assets.xml new file mode 100644 index 0000000..5b36d31 --- /dev/null +++ b/muk_web_theme/template/assets.xml @@ -0,0 +1,88 @@ +<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+
+ Copyright (c) 2017-today MuK IT GmbH.
+
+ This file is part of MuK Grid Snippets
+ (see https://mukit.at).
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+ -->
+
+<odoo>
+
+ <template id="_assets_utils" name="Mixins" inherit_id="web._assets_utils" priority="15">
+ <xpath expr="//link[last()]" position="after">
+ <link rel="stylesheet" type="text/scss" href="/muk_web_theme/static/src/scss/mixins.scss"/>
+ </xpath>
+ </template>
+
+ <template id="_assets_primary_variables" name="Colors" inherit_id="web._assets_primary_variables" priority="15">
+ <xpath expr="//link[last()]" position="after">
+ <link rel="stylesheet" type="text/scss" href="/muk_web_theme/static/src/scss/colors.scss"/>
+ </xpath>
+ </template>
+
+ <template id="_assets_backend_helpers" name="Variables" inherit_id="web._assets_backend_helpers" priority="15">
+ <xpath expr="//link[@href='/web/static/src/scss/bootstrap_overridden.scss']" position="after">
+ <link rel="stylesheet" type="text/scss" href="/muk_web_theme/static/src/scss/variables.scss"/>
+ </xpath>
+ </template>
+
+ <template id="assets_common" name="Common Assets" inherit_id="web_editor.assets_common">
+ <xpath expr="//link[last()]" position="after">
+ <link rel="stylesheet" type="text/scss" href="/muk_web_theme/static/src/scss/fonts.scss"/>
+ </xpath>
+ <xpath expr="//script[last()]" position="after">
+ <script type="text/javascript" src="/muk_web_theme/static/src/js/core/search.js" />
+ </xpath>
+ </template>
+
+ <template id="assets_backend" name="Backend Assets" inherit_id="web.assets_backend">
+ <xpath expr="//link[last()]" position="after">
+ <link rel="stylesheet" type="text/css" href="/muk_web_theme/static/libs/simplebar/simplebar.css" />
+ <link rel="stylesheet" type="text/scss" href="/muk_web_theme/static/src/scss/layout.scss"/>
+ <link rel="stylesheet" type="text/scss" href="/muk_web_theme/static/src/scss/navbar.scss"/>
+ <link rel="stylesheet" type="text/scss" href="/muk_web_theme/static/src/scss/apps.scss"/>
+ <link rel="stylesheet" type="text/scss" href="/muk_web_theme/static/src/scss/appsbar.scss"/>
+ <link rel="stylesheet" type="text/scss" href="/muk_web_theme/static/src/scss/control_panel.scss"/>
+ <link rel="stylesheet" type="text/scss" href="/muk_web_theme/static/src/scss/search_view.scss"/>
+ <link rel="stylesheet" type="text/scss" href="/muk_web_theme/static/src/scss/list_view.scss"/>
+ <link rel="stylesheet" type="text/scss" href="/muk_web_theme/static/src/scss/kanban_view.scss"/>
+ <link rel="stylesheet" type="text/scss" href="/muk_web_theme/static/src/scss/form_view.scss"/>
+ <link rel="stylesheet" type="text/scss" href="/muk_web_theme/static/src/scss/fields.scss"/>
+ <link rel="stylesheet" type="text/scss" href="/muk_web_theme/static/src/scss/notification.scss"/>
+ <link rel="stylesheet" type="text/scss" href="/muk_web_theme/static/src/scss/settings.scss"/>
+ </xpath>
+ <xpath expr="//script[last()]" position="after">
+ <script type="text/javascript" src="/web/static/lib/jquery.touchSwipe/jquery.touchSwipe.js" />
+ <script type="text/javascript" src="/muk_web_theme/static/libs/simplebar/simplebar.js" />
+ <script type="text/javascript" src="/muk_web_theme/static/src/js/libs/scrollbar.js" />
+ <script type="text/javascript" src="/muk_web_theme/static/src/js/chrome/actions.js" />
+ <script type="text/javascript" src="/muk_web_theme/static/src/js/chrome/menu.js" />
+ <script type="text/javascript" src="/muk_web_theme/static/src/js/chrome/apps.js" />
+ <script type="text/javascript" src="/muk_web_theme/static/src/js/chrome/appsbar.js" />
+ <script type="text/javascript" src="/muk_web_theme/static/src/js/fields/relational.js" />
+ <script type="text/javascript" src="/muk_web_theme/static/src/js/views/form_view.js" />
+ <script type="text/javascript" src="/muk_web_theme/static/src/js/views/form_renderer.js" />
+ <script type="text/javascript" src="/muk_web_theme/static/src/js/views/kanban_column.js" />
+ <script type="text/javascript" src="/muk_web_theme/static/src/js/views/kanban_renderer.js" />
+ <script type="text/javascript" src="/muk_web_theme/static/src/js/views/kanban_quick_create.js" />
+ <script type="text/javascript" src="/muk_web_theme/static/src/components/control_panel.js" />
+ </xpath>
+ </template>
+
+</odoo>
diff --git a/muk_web_theme/template/web.xml b/muk_web_theme/template/web.xml new file mode 100644 index 0000000..80f3d0c --- /dev/null +++ b/muk_web_theme/template/web.xml @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + + Copyright (c) 2017-today MuK IT GmbH. + + This file is part of MuK Grid Snippets + (see https://mukit.at). + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + + --> + +<odoo> + + <template id="webclient_bootstrap" name="Web Client" inherit_id="web.webclient_bootstrap"> + <xpath expr="//t[@t-set='head']" position="after"> + <t t-set="head_web_theme"> + <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/> + </t> + <t t-set="head" t-value="head_web_theme + (head or '')"/> + </xpath> + <xpath expr="//t[@t-set='body_classname']" position="after"> + <t t-set="body_sidebar_classname" t-value="'mk_sidebar_type_' + request.env.user.sidebar_type or 'small'"/> + <t t-set="body_chatter_classname" t-value="'mk_chatter_position_' + request.env.user.chatter_position or 'sided'"/> + <t t-set="body_classname" t-value="'o_web_client %s %s' % (body_sidebar_classname, body_chatter_classname)"/> + </xpath> + </template> + +</odoo> |
