[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">\ | 	$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>'); | 		<i class="icon-fixed-width icon-quote-left"></i> '+wn._('Forum')+'</a></li>'); | ||||||
| 	 | 	 | ||||||
| 	if(wn.boot.expires_on) { | 	if(wn.boot.expires_on || wn.boot.commercial_support) { | ||||||
| 		$user.append('<li><a href="http://www.providesupport.com?messenger=iwebnotes" target="_blank">\ | 		$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>'); | 			<i class="icon-fixed-width icon-comments"></i> '+wn._('Live Chat')+'</a></li>'); | ||||||
| 	} | 	} | ||||||
| 	 | 	 | ||||||
|  | |||||||
| @ -33,7 +33,8 @@ def boot_session(bootinfo): | |||||||
| 		 | 		 | ||||||
| 		# load subscription info | 		# load subscription info | ||||||
| 		import conf | 		import conf | ||||||
| 		for key in ['max_users', 'expires_on', 'max_space', 'status', 'developer_mode']: | 		for key in ['max_users', 'expires_on', 'max_space', 'status', 'developer_mode', | ||||||
|  | 			'commercial_support']: | ||||||
| 				if hasattr(conf, key): bootinfo[key] = getattr(conf, key) | 				if hasattr(conf, key): bootinfo[key] = getattr(conf, key) | ||||||
| 
 | 
 | ||||||
| 		bootinfo['docs'] += webnotes.conn.sql("""select name, default_currency, cost_center | 		bootinfo['docs'] += webnotes.conn.sql("""select name, default_currency, cost_center | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user