Ver código fonte

added splash for frappe:

version-14
Rushabh Mehta 11 anos atrás
pai
commit
21c3eeb52a
4 arquivos alterados com 9 adições e 6 exclusões
  1. +0
    -3
      webnotes/model/bean.py
  2. +5
    -2
      webnotes/public/css/splash.css
  3. +3
    -0
      webnotes/public/images/frappe.svg
  4. +1
    -1
      webnotes/templates/pages/app.html

+ 0
- 3
webnotes/model/bean.py Ver arquivo

@@ -231,9 +231,6 @@ class Bean:
if hasattr(self.controller, method):
add_to_response(webnotes.local.response,
webnotes.call(getattr(self.controller, method), *args, **kwargs))
if hasattr(self.controller, 'custom_' + method):
add_to_response(webnotes.local.response,
webnotes.call(getattr(self.controller, 'custom_' + method), *args, **kwargs))

args = [self, method] + args
for handler in webnotes.get_hooks("bean_event:" + self.doc.doctype + ":" + method) \


+ 5
- 2
webnotes/public/css/splash.css Ver arquivo

@@ -18,6 +18,9 @@
}
}

.splash path {
fill: #888;
}

.splash {
margin: auto;
@@ -43,10 +46,10 @@
}

.splash:after {
content: "erpnext";
content: "frappe.io";
font-size: 30px;
font-weight: 300;
font-family: Helvetica, Arial, sans-serif;
position: relative;
top: -30px;
top: 0px;
}

+ 3
- 0
webnotes/public/images/frappe.svg Ver arquivo

@@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="frappe_icon" x="0px" y="0px" width="100px" height="100px" viewBox="0 0 100 100" enable-background="new 0 0 100 100" xml:space="preserve">
<path d="M74.842,21.937C74.345,21.383,73.636,21,72.893,21H54.047L62.21,6.317l11.66,0.112l0.035-5.22L60.689,1.128 c-0.972-0.016-1.845,0.449-2.309,1.288L48.061,21H26.112c-0.744,0-1.452,0.383-1.949,0.937s-0.735,1.325-0.655,2.064l7.856,72.578 C31.508,97.908,32.631,99,33.968,99h31.068c1.337,0,2.459-1.075,2.604-2.404l5.534-51.099c0.055-0.21,0.093-0.445,0.093-0.672 c0-0.036-0.009-0.077-0.011-0.112l2.24-20.707C75.576,23.266,75.338,22.49,74.842,21.937z M69.975,26l-1.714,16H30.744l-1.714-16 H69.975z M62.686,94H36.318l-5.007-47h36.381L62.686,94z"/>
</svg>

+ 1
- 1
webnotes/templates/pages/app.html Ver arquivo

@@ -8,7 +8,7 @@
<link rel="icon" href="images/favicon.ico" type="image/x-icon">
</head>
<body>
<div class="splash">{% include "public/images/splash.svg" %}</div>
<div class="splash">{% include "public/images/frappe.svg" %}</div>
<header></header>
<div id="body_div">
</div>


Carregando…
Cancelar
Salvar