Anand Doshi | c9d1ac4 | 2012-04-17 13:54:53 +0530 | [diff] [blame] | 1 | wn.provide('erpnext'); |
| 2 | erpnext.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 Mehta | 946e6d4 | 2012-12-21 15:00:29 +0530 | [diff] [blame] | 10 | version: 'Please see git log for the release number' |
Anand Doshi | c9d1ac4 | 2012-04-17 13:54:53 +0530 | [diff] [blame] | 11 | }); |
Rushabh Mehta | 8c309be | 2012-01-20 13:47:16 +0530 | [diff] [blame] | 12 | } |
| 13 | |
Rushabh Mehta | 865c00a | 2012-01-24 14:33:21 +0530 | [diff] [blame] | 14 | wn.modules_path = 'erpnext'; |
Rushabh Mehta | 8c309be | 2012-01-20 13:47:16 +0530 | [diff] [blame] | 15 | |
Rushabh Mehta | a920943 | 2012-05-07 18:00:57 +0530 | [diff] [blame] | 16 | // add toolbar icon |
Rushabh Mehta | 8c309be | 2012-01-20 13:47:16 +0530 | [diff] [blame] | 17 | $(document).bind('toolbar_setup', function() { |
Anand Doshi | 28d59a0 | 2013-07-19 17:50:25 +0530 | [diff] [blame] | 18 | var brand = ($("<div></div>").append(wn.boot.website_settings.brand_html).text() || 'erpnext'); |
| 19 | $('.navbar-brand').html('<div style="display: inline-block;">\ |
Anand Doshi | 674765a | 2013-07-18 19:28:46 +0530 | [diff] [blame] | 20 | <object type="image/svg+xml" data="app/images/splash.svg" class="toolbar-splash"></object>\ |
Anand Doshi | 28d59a0 | 2013-07-19 17:50:25 +0530 | [diff] [blame] | 21 | </div>' + brand) |
| 22 | .attr("title", brand) |
Anand Doshi | c8b2c0f | 2013-07-18 18:15:56 +0530 | [diff] [blame] | 23 | .addClass("navbar-icon-home") |
Anand Doshi | 28d59a0 | 2013-07-19 17:50:25 +0530 | [diff] [blame] | 24 | .css({ |
| 25 | "max-width": "200px", |
| 26 | "overflow": "hidden", |
| 27 | "text-overflow": "ellipsis", |
| 28 | "white-space": "nowrap" |
| 29 | }); |
Anand Doshi | 859cb72 | 2012-04-10 11:35:19 +0530 | [diff] [blame] | 30 | }); |