mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
post summary change
This commit is contained in:
@@ -140,8 +140,8 @@
|
||||
<span class="pull-right">
|
||||
<a href="../../topic/{posts.tid}/#{posts.pid}">[[global:posted]]</a>
|
||||
[[global:in]]
|
||||
<a href="../../category/{posts.categorySlug}">
|
||||
<i class="fa {posts.categoryIcon}"></i> {posts.categoryName}
|
||||
<a href="../../category/{posts.category.slug}">
|
||||
<i class="fa {posts.category.icon}"></i> {posts.category.name}
|
||||
</a>
|
||||
<span class="timeago" title="{posts.relativeTime}"></span>
|
||||
</span>
|
||||
|
||||
@@ -25,10 +25,10 @@
|
||||
<div>
|
||||
<small>
|
||||
<span class="pull-right">
|
||||
<a href="../../topic/{posts.tid}/#{posts.pid}">[[global:posted]]</a>
|
||||
<a href="../../topic/{posts.topic.slug}#{posts.pid}">[[global:posted]]</a>
|
||||
[[global:in]]
|
||||
<a href="../../category/{posts.categorySlug}">
|
||||
<i class="fa {posts.categoryIcon}"></i> {posts.categoryName}
|
||||
<a href="../../category/{posts.category.slug}">
|
||||
<i class="fa {posts.category.icon}"></i> {posts.category.name}
|
||||
</a>
|
||||
<span class="timeago" title="{posts.relativeTime}"></span>
|
||||
</span>
|
||||
|
||||
@@ -25,10 +25,10 @@
|
||||
<div>
|
||||
<small>
|
||||
<span class="pull-right">
|
||||
<a href="../../topic/{posts.tid}/#{posts.pid}">posted</a>
|
||||
in
|
||||
<a href="../../category/{posts.categorySlug}">
|
||||
<i class="fa {posts.categoryIcon}"></i> {posts.categoryName}
|
||||
<a href="../../topic/{posts.topic.slug}#{posts.pid}">[[global:posted]]</a>
|
||||
[[global:in]]
|
||||
<a href="../../category/{posts.category.slug}">
|
||||
<i class="fa {posts.category.icon}"></i> {posts.category.name}
|
||||
</a>
|
||||
<span class="timeago" title="{posts.relativeTime}"></span>
|
||||
</span>
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
<!-- BEGIN posts -->
|
||||
<div class="topic-row panel panel-default clearfix">
|
||||
<div class="panel-body">
|
||||
<a href="../../topic/{posts.topicSlug}#{posts.pid}" class="search-result-text">
|
||||
<a href="../../topic/{posts.topic.slug}#{posts.pid}" class="search-result-text">
|
||||
{posts.content}
|
||||
</a>
|
||||
|
||||
@@ -71,10 +71,10 @@
|
||||
<a href="../../user/{posts.userslug}">
|
||||
<img title="{posts.username}" class="img-rounded user-img" src="{posts.picture}">
|
||||
</a>
|
||||
<a href="../../topic/{posts.topicSlug}#{posts.pid}">posted</a>
|
||||
in
|
||||
<a href="../../category/{posts.categorySlug}">
|
||||
<i class="fa {posts.categoryIcon}"></i> {posts.categoryName}
|
||||
<a href="../../topic/{posts.topic.slug}#{posts.pid}"> [[global:posted]]</a>
|
||||
[[global:in]]
|
||||
<a href="../../category/{posts.category.slug}">
|
||||
<i class="fa {posts.category.icon}"></i> {posts.category.name}
|
||||
</a>
|
||||
<span class="timeago" title="{posts.relativeTime}"></span>
|
||||
</span>
|
||||
|
||||
@@ -281,11 +281,9 @@ var db = require('./database'),
|
||||
return callback(null);
|
||||
}
|
||||
categories.getCategoryFields(topicData.cid, ['name', 'icon', 'slug'], function(err, categoryData) {
|
||||
postData.categoryName = categoryData.name;
|
||||
postData.categoryIcon = categoryData.icon;
|
||||
postData.categorySlug = categoryData.slug;
|
||||
postData.title = validator.escape(topicData.title);
|
||||
postData.topicSlug = topicData.slug;
|
||||
postData.category = categoryData;
|
||||
topicData.title = validator.escape(topicData.title);
|
||||
postData.topic = topicData;
|
||||
next(null, postData);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user