add timeago; simplify right hand side of categories

main
psychobunny 10 years ago
parent b336d3cdad
commit 58d3f9df5b

@ -13,7 +13,6 @@
margin-right: 15px;
min-width: 46px;
min-height: 46px;
text-align: center;
margin-top: 2px;
}
@ -23,18 +22,14 @@
}
.stats {
list-style-type: none;
li {
font-size: 20px;
text-align: center;
font-size: 20px;
text-align: center;
small {
text-transform: uppercase;
color: @gray-light;
font-weight: 300;
font-size: 12px;
}
small {
text-transform: uppercase;
color: @gray-light;
font-weight: 300;
font-size: 12px;
}
}

@ -15,21 +15,19 @@
</div>
<!-- IF !categories.link -->
<ul class="stats">
<li class="col-xs-1">
<span class="{categories.unread-class}">{categories.topic_count}</span><br />
<small>Topics</small>
</li>
<li class="col-xs-1">
<span class="{categories.unread-class}">{categories.post_count}</span><br />
<small>Posts</small>
</li>
<li class="col-xs-3">
<!-- IMPORT partials/categories/lastpost.tpl -->
</li>
</ul>
<!-- ELSE -->
<div class="col-xs-1 stats">
<span class="{categories.unread-class}">{categories.topic_count}</span><br />
<small>Topics</small>
</div>
<div class="col-xs-1 stats">
<span class="{categories.unread-class}">{categories.post_count}</span><br />
<small>Posts</small>
</div>
<div class="col-xs-3">
<!-- IMPORT partials/categories/lastpost.tpl -->
</div>
<!-- ELSE -->
<div class="col-xs-4">
</div>
<!-- ENDIF !categories.link -->

@ -1,7 +1,10 @@
<!-- BEGIN posts -->
<!-- IF @first -->
<div class="card" style="border-color: {categories.bgColor}">
<p class=""><strong>{categories.posts.user.username}</strong>: {categories.posts.content}</p>
<p>
<strong>{categories.posts.user.username}</strong> <small class="timeago" title="{categories.posts.relativeTime}"></small>
</p>
{categories.posts.content}
</div>
<!-- ENDIF @first -->
<!-- END posts -->
Loading…
Cancel
Save