blob: 53efe30dad788e0d4d7c4a4b516487e8032aef51 [file] [log] [blame]
Rushabh Mehtaad45e312013-11-20 12:59:58 +05301// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
Rushabh Mehtae67d1fb2013-08-05 14:59:54 +05302// License: GNU General Public License v3. See license.txt
Rushabh Mehta3966f1d2012-02-23 12:35:32 +05303
Rushabh Mehta8c309be2012-01-20 13:47:16 +05304/* toolbar settings */
Rushabh Mehta793ba6b2014-02-14 15:47:51 +05305frappe.provide('erpnext.toolbar');
Rushabh Mehta8c309be2012-01-20 13:47:16 +05306
7erpnext.toolbar.setup = function() {
8 // profile
Rushabh Mehtacc32b652013-04-19 13:01:32 +05309 var $user = $('#toolbar-user');
Anand Doshiaf1df682013-07-26 15:11:55 +053010 $user.append('<li><a href="#Form/Profile/'+user+'"><i class="icon-fixed-width icon-user"></i> '
Rushabh Mehta793ba6b2014-02-14 15:47:51 +053011 +frappe._("My Settings")+'...</a></li>');
Rushabh Mehtacc32b652013-04-19 13:01:32 +053012 $user.append('<li class="divider"></li>');
Anand Doshiaf1df682013-07-26 15:11:55 +053013 $user.append('<li><a href="https://erpnext.com/manual" target="_blank">\
Rushabh Mehta793ba6b2014-02-14 15:47:51 +053014 <i class="icon-fixed-width icon-file"></i> '+frappe._('Documentation')+'</a></li>');
Anand Doshiaf1df682013-07-26 15:11:55 +053015 $user.append('<li><a href="http://groups.google.com/group/erpnext-user-forum" target="_blank">\
Rushabh Mehta793ba6b2014-02-14 15:47:51 +053016 <i class="icon-fixed-width icon-quote-left"></i> '+frappe._('Forum')+'</a></li>');
Anand Doshi74458a92013-08-01 12:10:09 +053017
Rushabh Mehta793ba6b2014-02-14 15:47:51 +053018 if(frappe.boot.expires_on || frappe.boot.commercial_support) {
Anand Doshic7fa9cc2013-09-05 17:50:40 +053019 $user.append('<li>\
20 <a href="http://www.providesupport.com?messenger=iwebnotes" target="_blank">\
Rushabh Mehta793ba6b2014-02-14 15:47:51 +053021 <i class="icon-fixed-width icon-comments"></i> '+frappe._('Live Chat')+'</a></li>');
Anand Doshi74458a92013-08-01 12:10:09 +053022 }
Rushabh Mehtacc32b652013-04-19 13:01:32 +053023
Rushabh Mehta793ba6b2014-02-14 15:47:51 +053024 $("#toolbar-tools").append('<li><a href="https://github.com/frappe/erpnext/releases" target="_blank">\
Anand Doshiaf1df682013-07-26 15:11:55 +053025 <i class="icon-fixed-width icon-rss"></i> Latest Updates</li>');
Pratik Vyas76dd4682014-01-15 14:23:38 +053026}