diff --git a/public/css/style.less b/public/css/style.less
index 2cdcb896ca..0850e2b562 100644
--- a/public/css/style.less
+++ b/public/css/style.less
@@ -23,11 +23,12 @@ body {
background: #fdfdfd;
}
-.none {
+// havent really decided what makes more sense tbh
+.none, .hide {
display: none !important;
}
-.block {
+.block, .show {
display: block;
}
@@ -207,15 +208,16 @@ footer.footer {
#user_label {
img {
- border: 1px solid #999;
+ border: 1px solid #454;
margin-right: 8px;
margin-top: -2px;
float: left;
}
span {
- font-size: 12px;
- font-weight: bold;
+ font-size: 14px;
+ font-weight: 400;
+ color: #ded;
}
}
diff --git a/public/templates/topic.tpl b/public/templates/topic.tpl
index 11b5d716c0..f1cb2dbdb8 100644
--- a/public/templates/topic.tpl
+++ b/public/templates/topic.tpl
@@ -19,7 +19,9 @@
posted by
{posts.username} {posts.relativeTime}
-
+
+
+
{posts.post_rep}
Reply
@@ -51,6 +53,12 @@ jQuery('.quote').click(function() {
document.getElementById('post_content').innerHTML = '> ' + document.getElementById('content_' + this.id.replace('quote_', '')).innerHTML;
});
+jQuery('.edit, .delete').each(function() {
+ var ids = this.id.replace('ids_', '').split('_'),
+ pid = ids[0],
+ uid = ids[1];
+
+});
ajaxify.register_events(['event:rep_up', 'event:rep_down']);
diff --git a/src/posts.js b/src/posts.js
index ad0665b1c8..bd16f056af 100644
--- a/src/posts.js
+++ b/src/posts.js
@@ -15,7 +15,6 @@ var RDB = require('./redis.js'),
Posts.get = function(callback, tid, current_user, start, end) {
- console.log(current_user);
if (start == null) start = 0;
if (end == null) end = start + 10;
@@ -65,7 +64,8 @@ var RDB = require('./redis.js'),
'gravatar' : gravatars[i],
'timestamp' : timestamp[i],
'relativeTime': utils.relativeTime(timestamp[i]),
- 'fav_star_class' : hasFavourited ? 'icon-star' : 'icon-star-empty'
+ 'fav_star_class' : hasFavourited ? 'icon-star' : 'icon-star-empty',
+ 'display_moderator_tools' : uid[i] === current_user ? 'show' : 'hide'
});
callbacks--;