blob: 330a2beaaf8fc44bd9628c266d81ca22681e973a [file] [log] [blame]
Anand Doshic9d1ac42012-04-17 13:54:53 +05301wn.provide('erpnext');
2erpnext.set_about = function() {
3 wn.provide('wn.app');
4 $.extend(wn.app, {
5 name: 'ERPNext',
6 license: 'GNU/GPL - Usage Condition: All "erpnext" branding must be kept as it is',
7 source: 'https://github.com/webnotes/erpnext',
8 publisher: 'Web Notes Technologies Pvt Ltd, Mumbai',
9 copyright: '© Web Notes Technologies Pvt Ltd',
Rushabh Mehta946e6d42012-12-21 15:00:29 +053010 version: 'Please see git log for the release number'
Anand Doshic9d1ac42012-04-17 13:54:53 +053011 });
Rushabh Mehta8c309be2012-01-20 13:47:16 +053012}
13
Rushabh Mehta865c00a2012-01-24 14:33:21 +053014wn.modules_path = 'erpnext';
Rushabh Mehta8c309be2012-01-20 13:47:16 +053015
Rushabh Mehtaa9209432012-05-07 18:00:57 +053016// add toolbar icon
Rushabh Mehta8c309be2012-01-20 13:47:16 +053017$(document).bind('toolbar_setup', function() {
Anand Doshi28d59a02013-07-19 17:50:25 +053018 var brand = ($("<div></div>").append(wn.boot.website_settings.brand_html).text() || 'erpnext');
19 $('.navbar-brand').html('<div style="display: inline-block;">\
Anand Doshi674765a2013-07-18 19:28:46 +053020 <object type="image/svg+xml" data="app/images/splash.svg" class="toolbar-splash"></object>\
Anand Doshi28d59a02013-07-19 17:50:25 +053021 </div>' + brand)
22 .attr("title", brand)
Anand Doshic8b2c0f2013-07-18 18:15:56 +053023 .addClass("navbar-icon-home")
Anand Doshi28d59a02013-07-19 17:50:25 +053024 .css({
25 "max-width": "200px",
26 "overflow": "hidden",
27 "text-overflow": "ellipsis",
28 "white-space": "nowrap"
29 });
Anand Doshi859cb722012-04-10 11:35:19 +053030});