added private public view to profile -- todo : add same for article view

This commit is contained in:
2013-01-17 17:30:16 -05:00
parent 89308a0c3e
commit 7b6a0df4a5
13 changed files with 42 additions and 31 deletions

View File

@@ -9,7 +9,7 @@ block content
p
span Author:
 
a(href="/users/" + encodeURIComponent(article.author.username))= article.author.full_name
a(href="/users/" + encodeURIComponent(article.author.name))= article.author.name
p
a(href="/articles") Back to all articles

View File

@@ -1,8 +1,5 @@
extends ../layout
block content
ul
- articles.forEach(function(article) {
li
a(href="/articles/" + encodeURIComponent(article.title))= article.title
- });
ul
- articles.forEach(function(article) {
li
a(href="/articles/" + encodeURIComponent(article._id))= article.title
- });