|  | @@ -6,6 +6,7 @@
 | 
	
		
			
				|  |  |  import BaseController from "../../common/base/base_controller";
 | 
	
		
			
				|  |  |  const projectModel = require("../../pm/models/project_model");
 | 
	
		
			
				|  |  |  const pmFacade = require('../../pm/facade/pm_facade');
 | 
	
		
			
				|  |  | +const systemSettingModel = require('../../system_setting/model/index');
 | 
	
		
			
				|  |  |  let config = require("../../../config/config.js");
 | 
	
		
			
				|  |  |  import OptionsDao from '../../options/models/optionsModel';
 | 
	
		
			
				|  |  |  import optionSetting from '../../options/models/optionTypes';
 | 
	
	
		
			
				|  | @@ -40,6 +41,7 @@ module.exports =function (app) {
 | 
	
		
			
				|  |  |                      options = await optionsDao.saveOptions(req.session.sessionUser.id, req.session.sessionCompilation._id, optionSetting);
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |                  const markReadProjectIDs = isOpenShareProject ? await pmFacade.markShareItemsRead(projectID, req.session.sessionUser.id) : [];
 | 
	
		
			
				|  |  | +                const version = await systemSettingModel.getVersion();
 | 
	
		
			
				|  |  |                  res.render('building_saas/main/html/main.html',
 | 
	
		
			
				|  |  |                      {
 | 
	
		
			
				|  |  |                          userAccount: req.session.userAccount,
 | 
	
	
		
			
				|  | @@ -54,7 +56,8 @@ module.exports =function (app) {
 | 
	
		
			
				|  |  |                          overWriteUrl:req.session.sessionCompilation.overWriteUrl,
 | 
	
		
			
				|  |  |                          fileKind: fileKind,
 | 
	
		
			
				|  |  |                          options:JSON.stringify(options),
 | 
	
		
			
				|  |  | -                        markReadProjectIDs: JSON.stringify(markReadProjectIDs)
 | 
	
		
			
				|  |  | +                        markReadProjectIDs: JSON.stringify(markReadProjectIDs),
 | 
	
		
			
				|  |  | +                        version
 | 
	
		
			
				|  |  |                      });
 | 
	
		
			
				|  |  |              } else {
 | 
	
		
			
				|  |  |                  res.redirect('/pm');
 |