Rushabh Mehta | e67d1fb | 2013-08-05 14:59:54 +0530 | [diff] [blame] | 1 | // Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. |
| 2 | // License: GNU General Public License v3. See license.txt |
| 3 | |
Anand Doshi | c9d1ac4 | 2012-04-17 13:54:53 +0530 | [diff] [blame] | 4 | wn.provide('erpnext'); |
| 5 | erpnext.set_about = function() { |
| 6 | wn.provide('wn.app'); |
| 7 | $.extend(wn.app, { |
| 8 | name: 'ERPNext', |
| 9 | license: 'GNU/GPL - Usage Condition: All "erpnext" branding must be kept as it is', |
| 10 | source: 'https://github.com/webnotes/erpnext', |
| 11 | publisher: 'Web Notes Technologies Pvt Ltd, Mumbai', |
| 12 | copyright: '© Web Notes Technologies Pvt Ltd', |
Rushabh Mehta | 946e6d4 | 2012-12-21 15:00:29 +0530 | [diff] [blame] | 13 | version: 'Please see git log for the release number' |
Anand Doshi | c9d1ac4 | 2012-04-17 13:54:53 +0530 | [diff] [blame] | 14 | }); |
Rushabh Mehta | 8c309be | 2012-01-20 13:47:16 +0530 | [diff] [blame] | 15 | } |
| 16 | |
Rushabh Mehta | 865c00a | 2012-01-24 14:33:21 +0530 | [diff] [blame] | 17 | wn.modules_path = 'erpnext'; |
Rushabh Mehta | 8c309be | 2012-01-20 13:47:16 +0530 | [diff] [blame] | 18 | |
Rushabh Mehta | a920943 | 2012-05-07 18:00:57 +0530 | [diff] [blame] | 19 | // add toolbar icon |
Rushabh Mehta | 8c309be | 2012-01-20 13:47:16 +0530 | [diff] [blame] | 20 | $(document).bind('toolbar_setup', function() { |
Anand Doshi | 28d59a0 | 2013-07-19 17:50:25 +0530 | [diff] [blame] | 21 | var brand = ($("<div></div>").append(wn.boot.website_settings.brand_html).text() || 'erpnext'); |
| 22 | $('.navbar-brand').html('<div style="display: inline-block;">\ |
Anand Doshi | 674765a | 2013-07-18 19:28:46 +0530 | [diff] [blame] | 23 | <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] | 24 | </div>' + brand) |
| 25 | .attr("title", brand) |
Anand Doshi | c8b2c0f | 2013-07-18 18:15:56 +0530 | [diff] [blame] | 26 | .addClass("navbar-icon-home") |
Anand Doshi | 28d59a0 | 2013-07-19 17:50:25 +0530 | [diff] [blame] | 27 | .css({ |
| 28 | "max-width": "200px", |
| 29 | "overflow": "hidden", |
| 30 | "text-overflow": "ellipsis", |
| 31 | "white-space": "nowrap" |
| 32 | }); |
Anand Doshi | 859cb72 | 2012-04-10 11:35:19 +0530 | [diff] [blame] | 33 | }); |