[fix] [minor] show live chat link if commercial_support = 1 in conf.py
This commit is contained in:
parent
ce4be997ab
commit
c7fa9cc4f5
@ -15,8 +15,9 @@ erpnext.toolbar.setup = function() {
|
||||
$user.append('<li><a href="http://groups.google.com/group/erpnext-user-forum" target="_blank">\
|
||||
<i class="icon-fixed-width icon-quote-left"></i> '+wn._('Forum')+'</a></li>');
|
||||
|
||||
if(wn.boot.expires_on) {
|
||||
$user.append('<li><a href="http://www.providesupport.com?messenger=iwebnotes" target="_blank">\
|
||||
if(wn.boot.expires_on || wn.boot.commercial_support) {
|
||||
$user.append('<li>\
|
||||
<a href="http://www.providesupport.com?messenger=iwebnotes" target="_blank">\
|
||||
<i class="icon-fixed-width icon-comments"></i> '+wn._('Live Chat')+'</a></li>');
|
||||
}
|
||||
|
||||
|
@ -33,8 +33,9 @@ def boot_session(bootinfo):
|
||||
|
||||
# load subscription info
|
||||
import conf
|
||||
for key in ['max_users', 'expires_on', 'max_space', 'status', 'developer_mode']:
|
||||
if hasattr(conf, key): bootinfo[key] = getattr(conf, key)
|
||||
for key in ['max_users', 'expires_on', 'max_space', 'status', 'developer_mode',
|
||||
'commercial_support']:
|
||||
if hasattr(conf, key): bootinfo[key] = getattr(conf, key)
|
||||
|
||||
bootinfo['docs'] += webnotes.conn.sql("""select name, default_currency, cost_center
|
||||
from `tabCompany`""", as_dict=1, update={"doctype":":Company"})
|
||||
|
Loading…
Reference in New Issue
Block a user