2013-11-20 07:29:58 +00:00
|
|
|
// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
|
2013-08-05 09:29:54 +00:00
|
|
|
// License: GNU General Public License v3. See license.txt
|
|
|
|
|
2012-04-17 08:24:53 +00:00
|
|
|
wn.provide('erpnext');
|
2012-01-20 08:17:16 +00:00
|
|
|
|
2012-05-07 12:30:57 +00:00
|
|
|
// add toolbar icon
|
2012-01-20 08:17:16 +00:00
|
|
|
$(document).bind('toolbar_setup', function() {
|
2013-08-07 10:49:30 +00:00
|
|
|
wn.app.name = "ERPNext";
|
|
|
|
|
2013-07-19 12:20:25 +00:00
|
|
|
var brand = ($("<div></div>").append(wn.boot.website_settings.brand_html).text() || 'erpnext');
|
|
|
|
$('.navbar-brand').html('<div style="display: inline-block;">\
|
2013-12-12 13:42:19 +00:00
|
|
|
<object type="image/svg+xml" data="assets/erpnext/images/splash.svg" class="toolbar-splash"></object>\
|
2013-07-19 12:20:25 +00:00
|
|
|
</div>' + brand)
|
|
|
|
.attr("title", brand)
|
2013-07-18 12:45:56 +00:00
|
|
|
.addClass("navbar-icon-home")
|
2013-07-19 12:20:25 +00:00
|
|
|
.css({
|
|
|
|
"max-width": "200px",
|
|
|
|
"overflow": "hidden",
|
|
|
|
"text-overflow": "ellipsis",
|
|
|
|
"white-space": "nowrap"
|
|
|
|
});
|
2012-04-10 06:05:19 +00:00
|
|
|
});
|
2013-08-07 06:15:39 +00:00
|
|
|
|
|
|
|
wn.provide('wn.ui.misc');
|
|
|
|
wn.ui.misc.about = function() {
|
|
|
|
if(!wn.ui.misc.about_dialog) {
|
2013-10-07 20:29:58 +00:00
|
|
|
var d = new wn.ui.Dialog({title: wn._('About ERPNext')})
|
2013-08-07 06:15:39 +00:00
|
|
|
|
|
|
|
$(d.body).html(repl("<div>\
|
2013-12-19 12:57:48 +00:00
|
|
|
<p>"+wn._("ERPNext is an open-source web based ERP made by Web Notes Technologies Pvt Ltd. to provide an integrated tool to manage most processes in a small organization. For more information about Web Notes, or to buy hosting servies, go to ")+
|
2013-10-07 20:29:58 +00:00
|
|
|
"<a href='https://erpnext.com'>https://erpnext.com</a>.</p>\
|
|
|
|
<p>"+wn._("To report an issue, go to ")+"<a href='https://github.com/webnotes/erpnext/issues'>GitHub Issues</a></p>\
|
2013-08-07 06:15:39 +00:00
|
|
|
<hr>\
|
|
|
|
<p><a href='http://www.gnu.org/copyleft/gpl.html'>License: GNU General Public License Version 3</a></p>\
|
|
|
|
</div>", wn.app));
|
|
|
|
|
|
|
|
wn.ui.misc.about_dialog = d;
|
|
|
|
}
|
|
|
|
|
|
|
|
wn.ui.misc.about_dialog.show();
|
|
|
|
}
|