blob: 033b2510aa4933aadd2c9d3c3400c0a660dd9b7e [file] [log] [blame]
Rushabh Mehtae67d1fb2013-08-05 14:59:54 +05301// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd.
2// License: GNU General Public License v3. See license.txt
3
Anand Doshic9d1ac42012-04-17 13:54:53 +05304wn.provide('erpnext');
5erpnext.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 Mehta946e6d42012-12-21 15:00:29 +053013 version: 'Please see git log for the release number'
Anand Doshic9d1ac42012-04-17 13:54:53 +053014 });
Rushabh Mehta8c309be2012-01-20 13:47:16 +053015}
16
Rushabh Mehta865c00a2012-01-24 14:33:21 +053017wn.modules_path = 'erpnext';
Rushabh Mehta8c309be2012-01-20 13:47:16 +053018
Rushabh Mehtaa9209432012-05-07 18:00:57 +053019// add toolbar icon
Rushabh Mehta8c309be2012-01-20 13:47:16 +053020$(document).bind('toolbar_setup', function() {
Anand Doshi28d59a02013-07-19 17:50:25 +053021 var brand = ($("<div></div>").append(wn.boot.website_settings.brand_html).text() || 'erpnext');
22 $('.navbar-brand').html('<div style="display: inline-block;">\
Anand Doshi674765a2013-07-18 19:28:46 +053023 <object type="image/svg+xml" data="app/images/splash.svg" class="toolbar-splash"></object>\
Anand Doshi28d59a02013-07-19 17:50:25 +053024 </div>' + brand)
25 .attr("title", brand)
Anand Doshic8b2c0f2013-07-18 18:15:56 +053026 .addClass("navbar-icon-home")
Anand Doshi28d59a02013-07-19 17:50:25 +053027 .css({
28 "max-width": "200px",
29 "overflow": "hidden",
30 "text-overflow": "ellipsis",
31 "white-space": "nowrap"
32 });
Anand Doshi859cb722012-04-10 11:35:19 +053033});