added permalink to home/category/topics

main
psychobunny 10 years ago
parent e1cdfb26d9
commit 2a408f6172

@ -234,3 +234,13 @@ a:hover, .btn-link:hover, .btn-link:active, .btn-link:focus {
.footer {
margin-top: 1em;
}
a.permalink {
&,
&:hover,
&:focus,
&:active {
color: @gray-light;
text-decoration: underline;
}
}

@ -205,16 +205,6 @@
border-color: darken(@brand-info, 20%);
box-shadow: 0px 0px 1px @brand-info;
}
.permalink {
&,
&:hover,
&:focus,
&:active {
color: @gray-light;
text-decoration: underline;
}
}
}
.content {

@ -3,7 +3,7 @@
<!-- IF @first -->
<p>
<strong>{categories.posts.user.username}</strong>
<a href="{relative_path}/topic/{categories.posts.topic.slug}<!-- IF categories.posts.index -->/{categories.posts.index}<!-- ENDIF categories.posts.index -->">
<a class="permalink" href="{relative_path}/topic/{categories.posts.topic.slug}<!-- IF categories.posts.index -->/{categories.posts.index}<!-- ENDIF categories.posts.index -->">
<small class="timeago" title="{categories.posts.relativeTime}"></small>
</a>
</p>

@ -38,7 +38,7 @@
<!-- IF @first -->
<p>
<strong>{children.posts.user.username}</strong>
<a href="{relative_path}/topic/{children.posts.topic.slug}<!-- IF children.posts.index -->/{children.posts.index}<!-- ENDIF children.posts.index -->">
<a class="permalink" href="{relative_path}/topic/{children.posts.topic.slug}<!-- IF children.posts.index -->/{children.posts.index}<!-- ENDIF children.posts.index -->">
<small class="timeago" title="{children.posts.relativeTime}"></small>
</a>
</p>

@ -60,7 +60,7 @@
<!-- ELSE -->
<p class="hidden-xs">
<strong>{topics.teaser.user.username}</strong>
<a href="{relative_path}/topic/{topics.slug}/{topics.teaser.index}">
<a class="permalink" href="{relative_path}/topic/{topics.slug}/{topics.teaser.index}">
<small class="timeago" title="{topics.teaser.timestamp}"></small>
</a>
</p>

Loading…
Cancel
Save