summaryrefslogtreecommitdiff
path: root/views/login.html
diff options
context:
space:
mode:
authorHorus32015-03-23 16:22:21 +0100
committerHorus32015-03-23 16:22:21 +0100
commitac1ee887205d068b7b1c1df690f157dda506e419 (patch)
tree94cbabac47acab058c98cdb5e77f2cfdf259640a /views/login.html
parent5ff2678063792a74868c231ec68e30ef4397dece (diff)
downloadfreemail-ac1ee887205d068b7b1c1df690f157dda506e419.tar.gz
Reorder and restyle alert messages. Fixed bug in AuthUser(). Remove some unnecessary CSS.
Diffstat (limited to 'views/login.html')
-rw-r--r--views/login.html23
1 files changed, 3 insertions, 20 deletions
diff --git a/views/login.html b/views/login.html
index d7a3865..ee22eca 100644
--- a/views/login.html
+++ b/views/login.html
@@ -1,25 +1,8 @@
{{template "header.html"}}
{{template "navbar.html"}}
-<div class="container">
- <div class="row">
-{{range .Error}}
-<h4 class="col-md-4 col-md-offset-4 alert alert-danger alert-dismissible" role="alert">
- <button type="button" class="close" data-dismiss="alert" aria-label="close"><span aria-hidden="true">&times;</span></button>
- {{.}}
-</h4>
-{{end}}
-{{range .Success}}
-<h4 class="col-md-4 col-md-offset-4 alert alert-success alert-dismissible" role="alert">
- <button type="button" class="close" data-dismiss="alert" aria-label="close"><span aria-hidden="true">&times;</span></button>
- {{.}}
-</h4>
-{{end}}
- </div>
-</div>
-<div class="container">
- <div class="row">
- </div>
-</div>
+{{template "alert.html" .}}
+
+
<div class="container">
<div class="row">
<form class="form-horizontal" method='post' action='/login'>