Module: MyForum::TopicsHelper
- Defined in:
- app/helpers/my_forum/topics_helper.rb
Instance Method Summary collapse
Instance Method Details
#can_quick_answer?(forum) ⇒ Boolean
10 11 12 13 14 15 |
# File 'app/helpers/my_forum/topics_helper.rb', line 10 def can_quick_answer?(forum) return false unless current_user return true if is_admin? return false if forum.closed? true end |
#topic_last_post_info(topic) ⇒ Object
4 5 6 7 8 |
# File 'app/helpers/my_forum/topics_helper.rb', line 4 def topic_last_post_info(topic) html = content_tag(:div, forum_time(topic.last_post_time)) html += content_tag(:div, topic.last_post_user_login) html.html_safe end |