mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 04:51:14 +00:00
Add sticky class to topic links.
This commit is contained in:
parent
20276bb710
commit
741a11a289
1 changed files with 4 additions and 2 deletions
|
@ -33,7 +33,9 @@
|
||||||
<b>Locked: </b>
|
<b>Locked: </b>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= link_to (h topic), topic, class: ((cuser and !topic.read_by? cuser) ? "unread" : "read") %>
|
<%= link_to (h topic), topic,
|
||||||
|
class: ((cuser and !topic.read_by? cuser) ? "unread" : "read") +
|
||||||
|
((topic.state == Topic::STATE_STICKY) ? " sticky" : "") %>
|
||||||
</h5>
|
</h5>
|
||||||
|
|
||||||
<% if topic.posts.count > Topic::POSTS_PAGE %>
|
<% if topic.posts.count > Topic::POSTS_PAGE %>
|
||||||
|
|
Loading…
Reference in a new issue