©️ year
This commit is contained in:
parent
72e54f6509
commit
d641800309
|
@ -148,9 +148,9 @@ func PreferenceHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
func LoginHandler(w http.ResponseWriter, r *http.Request) {
|
func LoginHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
if "GET" == r.Method {
|
if "GET" == r.Method {
|
||||||
// show the login page
|
// show the login page
|
||||||
|
|
||||||
model := map[string]interface{}{"conf": conf.Wide, "i18n": i18n.GetAll(conf.Wide.Locale),
|
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")
|
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),
|
model := map[string]interface{}{"conf": conf.Wide, "i18n": i18n.GetAll(conf.Wide.Locale),
|
||||||
"locale": conf.Wide.Locale, "ver": conf.WideVersion, "dir": dir,
|
"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")
|
t, err := template.ParseFiles("views/sign_up.html")
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
Ver {{.ver}}, © 2014 <a rel="copyright" href="http://b3log.org" target="_blank">B3LOG.ORG</a>
|
Ver {{.ver}}, © {{.year}} <a rel="copyright" href="http://b3log.org" target="_blank">B3LOG.ORG</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
Ver {{.ver}}, © 2014 <a rel="copyright" href="http://b3log.org" target="_blank">B3LOG.ORG</a>
|
Ver {{.ver}}, © {{.year}} <a rel="copyright" href="http://b3log.org" target="_blank">B3LOG.ORG</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue