Rushabh Mehta | ad45e31 | 2013-11-20 12:59:58 +0530 | [diff] [blame] | 1 | // Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors |
Rushabh Mehta | e67d1fb | 2013-08-05 14:59:54 +0530 | [diff] [blame] | 2 | // License: GNU General Public License v3. See license.txt |
Rushabh Mehta | 3966f1d | 2012-02-23 12:35:32 +0530 | [diff] [blame] | 3 | |
Rushabh Mehta | 8c309be | 2012-01-20 13:47:16 +0530 | [diff] [blame] | 4 | /* toolbar settings */ |
Rushabh Mehta | 793ba6b | 2014-02-14 15:47:51 +0530 | [diff] [blame] | 5 | frappe.provide('erpnext.toolbar'); |
Rushabh Mehta | 8c309be | 2012-01-20 13:47:16 +0530 | [diff] [blame] | 6 | |
| 7 | erpnext.toolbar.setup = function() { |
| 8 | // profile |
Rushabh Mehta | cc32b65 | 2013-04-19 13:01:32 +0530 | [diff] [blame] | 9 | var $user = $('#toolbar-user'); |
Anand Doshi | af1df68 | 2013-07-26 15:11:55 +0530 | [diff] [blame] | 10 | $user.append('<li><a href="#Form/Profile/'+user+'"><i class="icon-fixed-width icon-user"></i> ' |
Rushabh Mehta | 793ba6b | 2014-02-14 15:47:51 +0530 | [diff] [blame] | 11 | +frappe._("My Settings")+'...</a></li>'); |
Rushabh Mehta | cc32b65 | 2013-04-19 13:01:32 +0530 | [diff] [blame] | 12 | $user.append('<li class="divider"></li>'); |
Anand Doshi | af1df68 | 2013-07-26 15:11:55 +0530 | [diff] [blame] | 13 | $user.append('<li><a href="https://erpnext.com/manual" target="_blank">\ |
Rushabh Mehta | 793ba6b | 2014-02-14 15:47:51 +0530 | [diff] [blame] | 14 | <i class="icon-fixed-width icon-file"></i> '+frappe._('Documentation')+'</a></li>'); |
Anand Doshi | af1df68 | 2013-07-26 15:11:55 +0530 | [diff] [blame] | 15 | $user.append('<li><a href="http://groups.google.com/group/erpnext-user-forum" target="_blank">\ |
Rushabh Mehta | 793ba6b | 2014-02-14 15:47:51 +0530 | [diff] [blame] | 16 | <i class="icon-fixed-width icon-quote-left"></i> '+frappe._('Forum')+'</a></li>'); |
Anand Doshi | 74458a9 | 2013-08-01 12:10:09 +0530 | [diff] [blame] | 17 | |
Rushabh Mehta | 793ba6b | 2014-02-14 15:47:51 +0530 | [diff] [blame] | 18 | if(frappe.boot.expires_on || frappe.boot.commercial_support) { |
Anand Doshi | c7fa9cc | 2013-09-05 17:50:40 +0530 | [diff] [blame] | 19 | $user.append('<li>\ |
| 20 | <a href="http://www.providesupport.com?messenger=iwebnotes" target="_blank">\ |
Rushabh Mehta | 793ba6b | 2014-02-14 15:47:51 +0530 | [diff] [blame] | 21 | <i class="icon-fixed-width icon-comments"></i> '+frappe._('Live Chat')+'</a></li>'); |
Anand Doshi | 74458a9 | 2013-08-01 12:10:09 +0530 | [diff] [blame] | 22 | } |
Rushabh Mehta | cc32b65 | 2013-04-19 13:01:32 +0530 | [diff] [blame] | 23 | |
Rushabh Mehta | 793ba6b | 2014-02-14 15:47:51 +0530 | [diff] [blame] | 24 | $("#toolbar-tools").append('<li><a href="https://github.com/frappe/erpnext/releases" target="_blank">\ |
Anand Doshi | af1df68 | 2013-07-26 15:11:55 +0530 | [diff] [blame] | 25 | <i class="icon-fixed-width icon-rss"></i> Latest Updates</li>'); |
Pratik Vyas | 76dd468 | 2014-01-15 14:23:38 +0530 | [diff] [blame] | 26 | } |