Skip to content

Node.js based forum software built for the modern web

fixing timestamps in category view (topics listing) for noscript

Julian Lam3eb594df43b2
diff --git a/public/templates/noscript/category.tpl b/public/templates/noscript/category.tpl
index 75dbafe770..e2098aa4c0 100644
--- a/public/templates/noscript/category.tpl
+++ b/public/templates/noscript/category.tpl
@@ -6,11 +6,12 @@
<ul class="topics">
<!-- BEGIN topics -->
<li>
+ <span class="timestamp">{topics.teaser_timestamp}</span>
<a href="../../topic/{topics.slug}">{topics.title} ({topics.postcount})</a>
<div class="teaser">
<img class="img-thumbnail" src="{topics.teaser_userpicture}" />
<p>
- {topics.teaser_text} &mdash; {topics.teaser_timestamp} ago
+ {topics.teaser_text}
</p>
<div class="clear"></div>
</div>
diff --git a/public/themes/vanilla/noscript.less b/public/themes/vanilla/noscript.less
index 6adb091685..46c960cb6a 100644
--- a/public/themes/vanilla/noscript.less
+++ b/public/themes/vanilla/noscript.less
@@ -32,6 +32,13 @@ noscript {
.default;
}
+ .timestamp {
+ float: right;
+ color: #999;
+ font-style: italic;
+ font-size: 12px;
+ }
+
.teaser {
margin-left: 16px;
margin-top: 8px;