diff --git a/public/css/style.less b/public/css/style.less index c691b9f14b..8de2c5fca2 100644 --- a/public/css/style.less +++ b/public/css/style.less @@ -227,6 +227,15 @@ footer.footer { width:100px; } +.user-recent-posts { + div { + color: #333; + margin-bottom: 10px; + } + span { + padding-top: 10px; + } +} .category-icon { width: 100%; diff --git a/public/templates/account.tpl b/public/templates/account.tpl index 5386e0a534..d5e11cdb8b 100644 --- a/public/templates/account.tpl +++ b/public/templates/account.tpl @@ -25,7 +25,8 @@ -
+
+

profile

+ +
+

recent posts

+ + +
+ {posts.content} + {posts.timestamp} ago +
+
+ + +

diff --git a/src/posts.js b/src/posts.js index a0afe4892d..c1d543d160 100644 --- a/src/posts.js +++ b/src/posts.js @@ -64,7 +64,7 @@ marked.setOptions({ }; Posts.getPostsByPids = function(pids, current_user, callback) { - var content = [], uid = [], timestamp = [], post_rep = [], editor = [], editTime = [], deleted = []; + var content = [], uid = [], timestamp = [], post_rep = [], editor = [], editTime = [], deleted = [], tid = []; for (var i=0, ii=pids.length; i