@ -1,11 +1,6 @@
<h1>Topics</h1>
<hr />
<!-- IF notopics -->
<div class="alert alert-warning" id="category-no-topics">
<strong>There are no topics.</strong>
</div>
<!-- ENDIF notopics -->
<ul class="topics">
<!-- BEGIN topics -->
@ -25,8 +20,14 @@
<!-- END topics -->
</ul>
<!-- IF showLoadMore -->
<!-- ELSE -->
<div class="text-center">
<button id="topics_loadmore" class="btn btn-primary btn-lg">Load More Topics</button>
<!-- ENDIF showLoadMore -->
@ -247,8 +247,7 @@ var user = require('./../user.js'),
topics.getAllTopics(10, null, function (topics) {
res.json({
topics: topics,
notopics: topics.length === 0,
showLoadMore: topics.length > 0
notopics: topics.length === 0
});