Skip to content

Node.js based forum software built for the modern web

cleaned up unread.tpl

psychobunny7796c9269c0e
diff --git a/public/templates/unread.tpl b/public/templates/unread.tpl
index 91b68e7846..d4a00c4626 100644
--- a/public/templates/unread.tpl
+++ b/public/templates/unread.tpl
@@ -1,51 +1,51 @@
-<ol class="breadcrumb">
- <li><a href="/">Home</a></li>
- <li class="active">{category_name}</li>
- <div id="category_active_users"></div>
-</ol>
+<div class="unread">
+ <ol class="breadcrumb">
+ <li><a href="/">Home</a></li>
+ <li class="active">{category_name}</li>
+ <div id="category_active_users"></div>
+ </ol>
-<a href="/unread">
- <div class="alert hide" id="new-topics-alert"></div>
-</a>
+ <a href="/unread">
+ <div class="alert hide" id="new-topics-alert"></div>
+ </a>
-<div class="alert alert-warning {no_topics_message}" id="category-no-topics">
- <strong>There are no unread topics.</strong>
-</div>
+ <div class="alert alert-warning {no_topics_message}" id="category-no-topics">
+ <strong>There are no unread topics.</strong>
+ </div>
-<div>
<button id="mark-allread-btn" class="btn btn-primary {show_markallread_button}">Mark all as Read</button>
-</div>
-<div class="category row">
- <div class="{topic_row_size}">
- <ul id="topics-container" data-next-start="{nextStart}">
- <!-- BEGIN topics -->
- <a href="../../topic/{topics.slug}" id="tid-{topics.tid}">
- <li class="category-item {topics.deleted-class}">
- <div class="row">
- <div class="col-md-12 topic-row img-thumbnail">
- <div class="latest-post visible-lg visible-md">
- <div class="pull-right">
- <img style="width: 48px; height: 48px; /*temporary*/" src="{topics.teaser_userpicture}" />
- <p><strong>{topics.teaser_username}</strong>: {topics.teaser_text}</p>
- <span>posted {topics.teaser_timestamp} ago</span>
+ <div class="category row">
+ <div class="{topic_row_size}">
+ <ul id="topics-container" data-next-start="{nextStart}">
+ <!-- BEGIN topics -->
+ <a href="../../topic/{topics.slug}" id="tid-{topics.tid}">
+ <li class="category-item {topics.deleted-class}">
+ <div class="row">
+ <div class="col-md-12 topic-row img-thumbnail">
+ <div class="latest-post visible-lg visible-md">
+ <div class="pull-right">
+ <img style="width: 48px; height: 48px; /*temporary*/" src="{topics.teaser_userpicture}" />
+ <p><strong>{topics.teaser_username}</strong>: {topics.teaser_text}</p>
+ <span>posted {topics.teaser_timestamp} ago</span>
+ </div>
+ </div>
+ <div>
+ <h3><span class="topic-title"><span class="badge {topics.badgeclass}">{topics.postcount}</span>{topics.title}</span></h3>
+ <small>
+ <strong><i class="{topics.pin-icon}"></i><i class="{topics.lock-icon}"></i></strong>
+ Posted {topics.relativeTime} ago by
+ <strong>{topics.username}</strong>.
+ </small>
</div>
- </div>
- <div>
- <h3><span class="topic-title"><span class="badge {topics.badgeclass}">{topics.postcount}</span>{topics.title}</span></h3>
- <small>
- <strong><i class="{topics.pin-icon}"></i><i class="{topics.lock-icon}"></i></strong>
- Posted {topics.relativeTime} ago by
- <strong>{topics.username}</strong>.
- </small>
</div>
</div>
- </div>
- </li>
- </a>
- <!-- END topics -->
- </ul>
- <button id="load-more-btn" class="btn btn-primary hide">Load More</button>
+ </li>
+ </a>
+ <!-- END topics -->
+ </ul>
+ <button id="load-more-btn" class="btn btn-primary hide">Load More</button>
+ </div>
</div>
</div>
diff --git a/public/themes/vanilla/unread.less b/public/themes/vanilla/unread.less
index 754fbf84ab..c45b17879f 100644
--- a/public/themes/vanilla/unread.less
+++ b/public/themes/vanilla/unread.less
@@ -1,4 +1,5 @@
-
-#mark-allread-btn {
- margin-bottom:15px;
+.unread {
+ > .btn {
+ margin-bottom: 15px;
+ }
}
\ No newline at end of file
diff --git a/public/themes/vanilla/vanilla.less b/public/themes/vanilla/vanilla.less
index 429b1c9ae2..e02349fc82 100644
--- a/public/themes/vanilla/vanilla.less
+++ b/public/themes/vanilla/vanilla.less
@@ -1,4 +1,5 @@
@import "style";
+
@import "topic";
@import "category";
@import "noscript";