Subversion Repositories SmartDukaan

Rev

Rev 30608 | Rev 30629 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 30608 Rev 30612
Line 53... Line 53...
53
 
53
 
54
	public void setResource(Resource resource) {
54
	public void setResource(Resource resource) {
55
		AppConfig.resource = resource;
55
		AppConfig.resource = resource;
56
	}
56
	}
57
 
57
 
58
 
-
 
59
	@Bean(value = "velocityAttributesMap")
58
	@Bean(value = "velocityAttributesMap")
60
	public Map<String, Object> velocityAttributesMap() {
59
	public Map<String, Object> velocityAttributesMap() {
61
		Map<String, Object> attributesMap = new HashMap<>();
60
		Map<String, Object> attributesMap = new HashMap<>();
62
		DateTimeFormatter dateFormatter = DateTimeFormatter.ofPattern("dd/MM/yyyy");
61
		DateTimeFormatter dateFormatter = DateTimeFormatter.ofPattern("dd/MM/yyyy");
63
		DateTimeFormatter dateMonthFormatter = DateTimeFormatter.ofPattern("dd''MMM");
62
		DateTimeFormatter dateMonthFormatter = DateTimeFormatter.ofPattern("dd''MMM");
Line 80... Line 79...
80
		attributesMap.put("dateMonthChYear", dateMonthChYear);
79
		attributesMap.put("dateMonthChYear", dateMonthChYear);
81
		attributesMap.put("decimalFormatter", decimalFormatter);
80
		attributesMap.put("decimalFormatter", decimalFormatter);
82
		attributesMap.put("noData",
81
		attributesMap.put("noData",
83
				"<tr><td colspan=\"20\" style=\"text-align:center;\">No results found for the given criteria</td></tr>");
82
				"<tr><td colspan=\"20\" style=\"text-align:center;\">No results found for the given criteria</td></tr>");
84
		attributesMap.put("dateTimeFormatter", dateTimeFormatter);
83
		attributesMap.put("dateTimeFormatter", dateTimeFormatter);
85
		attributesMap.put("version", "126");
84
		attributesMap.put("version", "127");
86
		attributesMap.put("cssVersion", "10");
85
		attributesMap.put("cssVersion", "10");
87
		attributesMap.put("isDev", getActiveProfile().equals("dev"));
86
		attributesMap.put("isDev", getActiveProfile().equals("dev"));
88
		attributesMap.put("vmUtils", new Utils());
87
		attributesMap.put("vmUtils", new Utils());
89
		attributesMap.put("esc", new EscapeTool());
88
		attributesMap.put("esc", new EscapeTool());
90
		return attributesMap;
89
		return attributesMap;