mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-17 13:02:53 +01:00
show message if there are not recent topics
This commit is contained in:
@@ -7,15 +7,14 @@
|
||||
</div>
|
||||
|
||||
|
||||
<div class="alert alert-warning hide {no_topics_message}" id="category-no-topics">
|
||||
<strong>There are no topics in this category.</strong><br />
|
||||
Why don't you try posting one?
|
||||
</div>
|
||||
|
||||
<a href="/recent">
|
||||
<div class="alert hide" id="new-topics-alert"></div>
|
||||
</a>
|
||||
|
||||
<div class="alert alert-warning hide {no_topics_message}" id="category-no-topics">
|
||||
<strong>There are no recent topics.</strong>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="category row">
|
||||
<div class="{topic_row_size}">
|
||||
|
||||
@@ -116,6 +116,7 @@ var RDB = require('./redis.js'),
|
||||
};
|
||||
|
||||
if (!tids || !tids.length) {
|
||||
latestTopics.no_topics_message = 'show';
|
||||
callback(latestTopics);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user