lets break some themes :evil:

v1.18.x
barisusakli 9 years ago
parent 2936e79740
commit f3d2ad5f1f

@ -56,8 +56,8 @@ var async = require('async'),
return next(); return next();
} }
post.relativeTime = utils.toISOString(post.timestamp); post.timestampISO = utils.toISOString(post.timestamp);
post.relativeEditTime = parseInt(post.edited, 10) !== 0 ? utils.toISOString(post.edited) : ''; post.editedISO = parseInt(post.edited, 10) !== 0 ? utils.toISOString(post.edited) : '';
Posts.parsePost(post, next); Posts.parsePost(post, next);
}, next); }, next);
}, },

@ -81,7 +81,7 @@ module.exports = function(Posts) {
post.user = results.users[post.uid]; post.user = results.users[post.uid];
post.topic = results.topics[post.tid]; post.topic = results.topics[post.tid];
post.category = results.categories[post.topic.cid]; post.category = results.categories[post.topic.cid];
post.relativeTime = utils.toISOString(post.timestamp); post.timestampISO = utils.toISOString(post.timestamp);
if (!post.content || !options.parse) { if (!post.content || !options.parse) {
if (options.stripTags) { if (options.stripTags) {

@ -307,7 +307,7 @@ module.exports = function(Topics) {
postData.display_moderator_tools = true; postData.display_moderator_tools = true;
postData.display_move_tools = true; postData.display_move_tools = true;
postData.selfPost = false; postData.selfPost = false;
postData.relativeTime = utils.toISOString(postData.timestamp); postData.timestampISO = utils.toISOString(postData.timestamp);
postData.topic.title = validator.escape(postData.topic.title); postData.topic.title = validator.escape(postData.topic.title);
next(null, postData); next(null, postData);

@ -60,7 +60,7 @@ module.exports = function(Topics) {
} }
topic.titleRaw = topic.title; topic.titleRaw = topic.title;
topic.title = validator.escape(topic.title); topic.title = validator.escape(topic.title);
topic.relativeTime = utils.toISOString(topic.timestamp); topic.timestampISO = utils.toISOString(topic.timestamp);
topic.lastposttimeISO = utils.toISOString(topic.lastposttime); topic.lastposttimeISO = utils.toISOString(topic.lastposttime);
} }

@ -60,7 +60,7 @@ module.exports = function(Topics) {
} }
post.user = users[post.uid]; post.user = users[post.uid];
post.timestamp = utils.toISOString(post.timestamp); post.timestampISO = utils.toISOString(post.timestamp);
tidToPost[post.tid] = post; tidToPost[post.tid] = post;
posts.parsePost(post, next); posts.parsePost(post, next);
}, next); }, next);

@ -149,7 +149,7 @@ module.exports = function(User) {
function(users, next) { function(users, next) {
users.forEach(function(user, index) { users.forEach(function(user, index) {
if (user) { if (user) {
user.timestamp = utils.toISOString(data[index].score); user.timestampISO = utils.toISOString(data[index].score);
} }
}); });

@ -57,7 +57,7 @@
</div> </div>
<small> <small>
<span class="pull-right"> <span class="pull-right">
Posted in <a href="{config.relative_path}/category/{posts.category.slug}" target="_blank"><i class="fa {posts.category.icon}"></i> {posts.category.name}</a>, <span class="timeago" title="{posts.relativeTime}"></span> &bull; Posted in <a href="{config.relative_path}/category/{posts.category.slug}" target="_blank"><i class="fa {posts.category.icon}"></i> {posts.category.name}</a>, <span class="timeago" title="{posts.timestampISO}"></span> &bull;
<a href="{config.relative_path}/topic/{posts.topic.slug}/{posts.index}" target="_blank">Read More</a> <a href="{config.relative_path}/topic/{posts.topic.slug}/{posts.index}" target="_blank">Read More</a>
</span> </span>
</small> </small>

Loading…
Cancel
Save