Module: MyForum::TopicsHelper

Defined in:
app/helpers/my_forum/topics_helper.rb

Instance Method Summary collapse

Instance Method Details

#can_quick_answer?(forum) ⇒ Boolean

Returns:

  • (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)
  html  = (:div, forum_time(topic.last_post_time))
  html += (:div, topic.)
  html.html_safe
end