mirror of
https://github.com/sstent/expressmongotest.git
synced 2026-01-26 09:02:33 +00:00
added private public view to profile -- todo : add same for article view
This commit is contained in:
@@ -2,8 +2,17 @@ extends ../layout
|
||||
block content
|
||||
h1= user.name
|
||||
|
||||
- if (session.user)
|
||||
h1 Private View
|
||||
- else
|
||||
h1 Public View
|
||||
|
||||
h2 Recent Articles:
|
||||
p!= partial('articles/list', {articles: recentArticles })
|
||||
ul
|
||||
- recentArticles.forEach(function(article) {
|
||||
li
|
||||
a(href="/articles/" + encodeURIComponent(article._id))= article.title
|
||||
- });
|
||||
|
||||
|
||||
form(action="/users/" + encodeURIComponent(user.username), method="POST")
|
||||
|
||||
Reference in New Issue
Block a user