Explorar o código

[ADD] initial commit

Gogs %!s(int64=7) %!d(string=hai) anos
achega
432271b4e0
Modificáronse 7 ficheiros con 61 adicións e 0 borrados
  1. 1 0
      __init__.py
  2. BIN=BIN
      __init__.pyc
  3. 11 0
      __openerp__.py
  4. BIN=BIN
      description/icon.png
  5. BIN=BIN
      static/img/eiru.png
  6. 27 0
      static/src/main.css
  7. 22 0
      templates.xml

+ 1 - 0
__init__.py

@@ -0,0 +1 @@
+# -*- coding: utf-8 -*-

BIN=BIN
__init__.pyc


+ 11 - 0
__openerp__.py

@@ -0,0 +1,11 @@
+# -*- coding: utf-8 -*-
+{
+    'name': 'Eiru Brand',
+    'author': 'Robert Gauto',
+    'category': 'Uncategorized',
+    'version': '0.1',
+    'depends': ['base'],
+    'data': [
+        'templates.xml',
+    ],
+}

BIN=BIN
description/icon.png


BIN=BIN
static/img/eiru.png


+ 27 - 0
static/src/main.css

@@ -0,0 +1,27 @@
+.menu_eiru_brand {
+    width: 90px;
+    height: 28px;
+    margin-top: 8px;
+    float: left;
+    border-right: 1px solid #fff;
+    display: flex;
+}
+
+.menu_eiru_brand .menu_brand_logo {
+    height: 28px;
+    width: 30px;
+    margin-right: 5px;
+}
+
+.menu_eiru_brand div h2 {
+    font-size: 14px;
+    text-decoration: underline;
+    margin: 0;
+    color: #fff;
+}
+
+.menu_eiru_brand div h3 {
+    font-size: 10px;
+    margin: 0;
+    color: #fff;
+}

+ 22 - 0
templates.xml

@@ -0,0 +1,22 @@
+<openerp>
+    <data>
+        <!-- Assets for brand -->
+        <template id="eiru_brand.assets" name="Eiru Brand" inherit_id="web.assets_backend">
+            <xpath expr="." position="inside">
+                <link rel="stylesheet" href="/eiru_brand/static/src/main.css" />
+            </xpath>
+        </template>
+        <!-- Menu brand -->
+        <template id="eiru_brand.menu" name="Eiru Brand" inherit_id="web.menu">
+            <xpath expr="//ul[1]" position="before">
+                <div class="menu_eiru_brand">
+                    <img class="menu_brand_logo" src="/eiru_brand/static/img/eiru.png" alt="Eiru Software" />
+                    <div>
+                        <h2>Eiru</h2>
+                        <h3>Software</h3>
+                    </div>
+                </div>
+            </xpath>
+        </template>
+    </data>
+</openerp>