Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
Moved flash messages from auth.jade to signin.jade. Placed within err…
Browse files Browse the repository at this point in the history
…or div.
  • Loading branch information
andrunix committed Dec 11, 2013
1 parent 50b3b88 commit 2def71a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
7 changes: 0 additions & 7 deletions app/views/users/auth.jade
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,4 @@ block content
a(href="/auth/google")
img(src="/img/icons/google.png")
.span6
if (typeof errors !== 'undefined')
.fade.in.alert.alert-block.alert-error
a.close(data-dismiss="alert", href="javascript:void(0)") x
ul
each error in errors
li= error.type

block auth
10 changes: 9 additions & 1 deletion app/views/users/signin.jade
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
extends auth

block auth
if message.length > 0
.fade.in.alert.alert-block.alert-error
p #{message}
a.close(data-dismiss="alert", href="javascript:void(0)") x
ul
each error in errors
li= error


form.signin.form-horizontal(action="/users/session", method="post")
p.error= message
.control-group
label.control-label(for='email') Email
.controls
Expand Down

0 comments on commit 2def71a

Please sign in to comment.