summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-06 11:10:35 -0500
committerUnknown <joe2010xtmf@163.com>2014-03-06 11:10:35 -0500
commit1249392c8390d9e348c388c0ad6e80fce208cd95 (patch)
tree56d04a67feca2c88bb46249e2aec848a0715ead3 /templates
parent4b912b9ae6e087271c0c98b6e444384555ea3e84 (diff)
downloadgitea-1249392c8390d9e348c388c0ad6e80fce208cd95.tar.gz
gitea-1249392c8390d9e348c388c0ad6e80fce208cd95.zip
Finish register user
Diffstat (limited to 'templates')
-rw-r--r--templates/base/error.tmpl2
-rw-r--r--templates/user/signup.tmpl4
2 files changed, 3 insertions, 3 deletions
diff --git a/templates/base/error.tmpl b/templates/base/error.tmpl
index 8d3c36be9a..fbd424bff1 100644
--- a/templates/base/error.tmpl
+++ b/templates/base/error.tmpl
@@ -1,6 +1,6 @@
{{template "base/head" .}}
{{template "base/navbar" .}}
<div id="gogs-body" class="container">
- An error is occupied : {{.Error}}
+ An error is occurred : {{.ErrorMsg}}
</div>
{{template "base/footer" .}} \ No newline at end of file
diff --git a/templates/user/signup.tmpl b/templates/user/signup.tmpl
index 265365bfb7..76064bf760 100644
--- a/templates/user/signup.tmpl
+++ b/templates/user/signup.tmpl
@@ -6,7 +6,7 @@
{{if .HasError}}
<div class="alert alert-danger">{{.ErrorMsg}}</div>
{{end}}
- <div class="form-group {{if .Err_Username}}has-error has-feedback{{end}}">
+ <div class="form-group {{if .Err_UserName}}has-error has-feedback{{end}}">
<label class="col-md-4 control-label">Username: </label>
<div class="col-md-6">
<input name="username" class="form-control" placeholder="Type your username" value="{{.username}}">
@@ -25,7 +25,7 @@
<input name="passwd" type="password" class="form-control" placeholder="Type your password">
</div>
</div>
- <div class="form-group">
+ <div class="form-group {{if .Err_RetypePasswd}}has-error has-feedback{{end}}">
<label class="col-md-4 control-label">Re-type: </label>
<div class="col-md-6">
<input type="password" class="form-control" placeholder="Re-type your password">