app/views/forums/_latest.html.haml in radiant-forum-extension-2.1.6 vs app/views/forums/_latest.html.haml in radiant-forum-extension-3.0.0.rc3
- old
+ new
@@ -1,12 +1,14 @@
-%h2
- = t('forums')
-%ul
- - Forum.all.each do |forum|
- - if topic = forum.topics.bydate.first
- %li
- = link_to forum.name, forum_url(forum), :class => 'title'
- %br
- = forum.topics.count
- = t('topics') + ','
- = t('most_recently')
- = link_to topic.name, forum_topic_url(forum, topic)
+- if using_forums?
+ %h2
+ = t('forum_extension.forums')
+ %ul
+ - Forum.visible_to(current_reader).each do |forum|
+ - if topic = forum.topics.bydate.first
+ %li
+ = link_to forum.name, forum_url(forum), :class => 'title'
+ %br
+ %span.context
+ = forum.topics.count
+ = t('forum_extension.topics') + ','
+ = t('forum_extension.most_recently')
+ = link_to_topic(topic)