diff --git a/app.js b/app.js index a3057cd..e8a5128 100644 --- a/app.js +++ b/app.js @@ -210,7 +210,8 @@ ddoc.lists.user = function(head, req) { title: user.name + ' | ', username: username, login: !(username), - user: user + user: user, + myprofile: user.name === username }; var html = Mustache.to_html(this.templates.user, data, this.templates.partials); diff --git a/templates/user.html b/templates/user.html index eba71f4..749b3c7 100644 --- a/templates/user.html +++ b/templates/user.html @@ -23,25 +23,35 @@ about: - + {{#myprofile}} + help + {{/myprofile}} + {{^myprofile}} + {{about}} + {{/myprofile}} + {{#myprofile}} email: + {{/myprofile}} + + + {{#myprofile}}
+ {{/myprofile}}