register open option

This commit is contained in:
life
2014-05-07 20:31:30 +08:00
parent d5928b06cf
commit 4a6381bf5d
17 changed files with 370 additions and 331 deletions

View File

@@ -3,11 +3,6 @@
{{else}}
{{template "home/header_box.html" .}}
<style>
html, body {
height: 100%;
}
</style>
<section id="box">
<div>
<h1>error-404</h1>

View File

@@ -39,7 +39,9 @@ function log(o) {
<a href="/logout">{{msg . "logout"}}</a>
{{else}}
<a href="/login">{{msg . "login"}}</a>
<a href="/register" class="btn-register">{{msg . "register"}}</a>
{{if .openRegister}}
<a href="/register" class="btn-register">{{msg . "register"}}</a>
{{end}}
{{end}}
</div>

View File

@@ -12,12 +12,14 @@
&nbsp;
&nbsp;
<a class="btn btn-default" href="/demo">Try it</a>
{{if .openRegister}}
&nbsp;
&nbsp;
OR
&nbsp;
&nbsp;
<a class="btn btn-default" href="/register">{{msg . "register"}}</a>
{{end}}
</div>
</div>

View File

@@ -25,13 +25,17 @@
<button id="loginBtn" class="btn btn-success" style="width: 100%">{{msg . "login"}}</button>
<br />
<a href="/findPassword">{{msg . "forgetPassword"}}</a>
{{if .openRegister}}
<br />
<a href="/register">{{msg . "register"}}</a> {{msg . "or"}}
<a href="/demo">{{msg . "try"}}</a>
<div style="border-top: 1px dashed #666;margin:2px 0">
<a href="/register">{{msg . "register"}}</a>
{{msg . "or"}}
<a href="/demo">{{msg . "try"}}</a>
<div style="border-top: 1px dashed #666;margin:2px 0">
{{msg . "3th"}}: <a id="github">github<i class="fa fa-github"></i></a>
<span id="thirdLoginLoading" style="display: none"> <img src="/images/loading-a-20-2.gif" />正在登录...</span>
</div>
</div>
{{end}}
</td>
</tr>
</table>

View File

@@ -97,10 +97,13 @@ function log(o) {
<div class="pull-left" style="line-height: 40px; margin-top: 10px; margin-left: 10px;" id="leanoteMsg">
<span id="msg" style="display: inline-block;"></span>
<img id="loading" style="visibility: hidden" src="/images/loading-a-20.gif" />
{{if eq .userInfo.Email "demo@leanote.com"}}
<span>
{{msg . "demoRegister"}}
</span>
{{if .openRegister}}
{{if eq .userInfo.Email "demo@leanote.com"}}
<span>
{{msg . "demoRegister"}}
</span>
{{end}}
{{end}}
</div>

View File

@@ -97,10 +97,13 @@ function log(o) {
<div class="pull-left" style="line-height: 40px; margin-top: 10px; margin-left: 10px;" id="leanoteMsg">
<span id="msg" style="display: inline-block;"></span>
<img id="loading" style="visibility: hidden" src="/images/loading-a-20.gif" />
{{if eq .userInfo.Email "demo@leanote.com"}}
<span>
{{msg . "demoRegister"}}
</span>
{{if .openRegister}}
{{if eq .userInfo.Email "demo@leanote.com"}}
<span>
{{msg . "demoRegister"}}
</span>
{{end}}
{{end}}
</div>