diff --git a/public/css/category.less b/public/css/category.less index 26da0f2b4c..24011dc6be 100644 --- a/public/css/category.less +++ b/public/css/category.less @@ -152,7 +152,14 @@ padding: 5px 5px 5px 0px; li { + clear: both; line-height: 16px; + margin-bottom: 1em; + + &:last-child { + margin-bottom: 0; + } + img { display: block; float: left; @@ -162,8 +169,10 @@ padding-left:5px; overflow: hidden; height: 32px; + margin-bottom: 0.5em; } span { + font-size: 12px; display: block; overflow: hidden; height: 16px; diff --git a/public/src/forum/category.js b/public/src/forum/category.js index 17570f318c..f8306f6063 100644 --- a/public/src/forum/category.js +++ b/public/src/forum/category.js @@ -66,25 +66,25 @@ if (!posts || posts.length === 0) { return; } - + var recent_replies = document.getElementById('category_recent_replies'); recent_replies.innerHTML = ''; - for (var i=0, ii=posts.length; i' + + '

' + + '' + posts[i].username + ': ' + posts[i].content + + '

' + + 'posted ' + utils.relativeTime(posts[i].timestamp) + ' ago'; - ul.innerHTML = '
  • ' - + '

    ' + username + ': ' + posts[i].content + '

    posted ' + utils.relativeTime(posts[i].timestamp) + ' ago
  • '; - - a.appendChild(ul); - recent_replies.appendChild(a); + frag.appendChild(li.cloneNode(true)); + recent_replies.appendChild(frag); } - }); })(); \ No newline at end of file diff --git a/public/templates/category.tpl b/public/templates/category.tpl index e565e06735..25100b31f5 100644 --- a/public/templates/category.tpl +++ b/public/templates/category.tpl @@ -63,8 +63,8 @@
    Recent Replies
    -
    - +
    +