©️ year

This commit is contained in:
Liang Ding 2015-01-01 09:24:16 +08:00
parent 72e54f6509
commit d641800309
3 changed files with 5 additions and 5 deletions

View File

@ -150,7 +150,7 @@ func LoginHandler(w http.ResponseWriter, r *http.Request) {
// show the login page
model := map[string]interface{}{"conf": conf.Wide, "i18n": i18n.GetAll(conf.Wide.Locale),
"locale": conf.Wide.Locale, "ver": conf.WideVersion}
"locale": conf.Wide.Locale, "ver": conf.WideVersion, "year": time.Now().Year()}
t, err := template.ParseFiles("views/login.html")
@ -231,7 +231,7 @@ func SignUpUser(w http.ResponseWriter, r *http.Request) {
model := map[string]interface{}{"conf": conf.Wide, "i18n": i18n.GetAll(conf.Wide.Locale),
"locale": conf.Wide.Locale, "ver": conf.WideVersion, "dir": dir,
"pathSeparator": conf.PathSeparator}
"pathSeparator": conf.PathSeparator, "year": time.Now().Year()}
t, err := template.ParseFiles("views/sign_up.html")

View File

@ -43,7 +43,7 @@
</div>
<div class="footer">
<div class="wrapper">
Ver {{.ver}}, &copy; 2014 <a rel="copyright" href="http://b3log.org" target="_blank">B3LOG.ORG</a>
Ver {{.ver}}, &copy; {{.year}} <a rel="copyright" href="http://b3log.org" target="_blank">B3LOG.ORG</a>
</div>
</div>

View File

@ -49,7 +49,7 @@
</div>
<div class="footer">
<div class="wrapper">
Ver {{.ver}}, &copy; 2014 <a rel="copyright" href="http://b3log.org" target="_blank">B3LOG.ORG</a>
Ver {{.ver}}, &copy; {{.year}} <a rel="copyright" href="http://b3log.org" target="_blank">B3LOG.ORG</a>
</div>
</div>