Skip to content
This repository has been archived by the owner on Jun 7, 2021. It is now read-only.

Commit

Permalink
Merge pull request #270 from t-bullock/better-forum-indicators
Browse files Browse the repository at this point in the history
Replace text with icons for 'sticky' and 'locked' in forum.
  • Loading branch information
bborn committed Dec 12, 2014
2 parents 7c00b25 + e8e9054 commit cd103e8
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions app/views/forums/show.html.haml
Expand Up @@ -38,18 +38,22 @@
%td
- icon, color, post = icon_and_color_and_post_for topic

- if recent_topic_activity(topic)
%span.badge.badge-warning
-if recent_topic_activity(topic)
%span.badge
=fa_icon "fire inverse"
%td
-if topic.sticky?
=:sticky.l
%strong
= link_to h(topic.title), forum_topic_path(@forum, topic), :class => "entry-title", :rel => "bookmark"
.pull-right
=fa_icon "thumb-tack fw"
-else
= link_to h(topic.title), forum_topic_path(@forum, topic), :class => "entry-title", :rel => "bookmark"
- if topic.paged?
-if topic.paged?
%small= link_to :last.l, forum_topic_path(:forum_id => @forum, :id => topic, :page => topic.last_page)
-if topic.locked?
.pull-right
=fa_icon "lock fw"
%td= topic.sb_posts_count
%td= number_with_delimiter(topic.views)
%td
Expand Down

0 comments on commit cd103e8

Please sign in to comment.