Use length in template
Merge branch 'master' of github.com:csy113/iems5718

Conflicts:
	template/view.html
time is set
Merge branch 'master' of github.com:csy113/iems5718
event id is ready