From e5dc46846ce9fb1c990d291ef852c0cad3f74957 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 9 Jun 2014 11:26:04 -0400 Subject: editing profile --- views/partials/edit-profile.ejs | 29 +++++++++++++++++++++-------- views/partials/header.ejs | 2 +- views/partials/scripts.ejs | 7 ++++--- 3 files changed, 26 insertions(+), 12 deletions(-) (limited to 'views') diff --git a/views/partials/edit-profile.ejs b/views/partials/edit-profile.ejs index a9a5a9a..1a288db 100644 --- a/views/partials/edit-profile.ejs +++ b/views/partials/edit-profile.ejs @@ -3,13 +3,19 @@
- +
  • Edit Profile

  • - + +
    +
    +
    +
  • +
  • +
    @@ -20,6 +26,12 @@
+
  • + +
    + +
    +
  • @@ -29,13 +41,13 @@
  • - +
  • - +
  • @@ -43,10 +55,11 @@
    -

    please choose a picture at least 500px wide

    +

    please choose a picture at least 500px wide

  • +
  • -

    Edit Password

    +

    Change Password

  • @@ -55,9 +68,9 @@
  • - +
    - +
  • diff --git a/views/partials/header.ejs b/views/partials/header.ejs index c706aa1..e0e98c2 100644 --- a/views/partials/header.ejs +++ b/views/partials/header.ejs @@ -2,7 +2,7 @@ [[ if (logged_in) { ]] - [[ if (profile && user._id == profile._id) { ]] + [[ if (profile && String(user._id) == String(profile._id)) { ]] Edit Profile [[ } else if (! profile) { ]] View Profile diff --git a/views/partials/scripts.ejs b/views/partials/scripts.ejs index fdb2229..5501c26 100644 --- a/views/partials/scripts.ejs +++ b/views/partials/scripts.ejs @@ -43,9 +43,10 @@ - - - + + + + -- cgit v1.2.3-70-g09d2