Sha256: 2a2e74f2a3bcf7865ce2c34dad8b76ae52d619673845fa9f545f1e366b3b06f8

Contents?: true

Size: 403 Bytes

Versions: 37

Compression:

Stored size: 403 Bytes

Contents

module MyForum
  module TopicsHelper

    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

    def can_quick_answer?(forum)
      return false  unless current_user
      return true   if is_admin?
      return false  if forum.closed?
      true
    end

  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
my_forum-0.0.1.beta45 app/helpers/my_forum/topics_helper.rb
my_forum-0.0.1.beta44 app/helpers/my_forum/topics_helper.rb
my_forum-0.0.1.beta43 app/helpers/my_forum/topics_helper.rb
my_forum-0.0.1.beta42 app/helpers/my_forum/topics_helper.rb
my_forum-0.0.1.beta41 app/helpers/my_forum/topics_helper.rb
my_forum-0.0.1.beta40 app/helpers/my_forum/topics_helper.rb
my_forum-0.0.1.beta39 app/helpers/my_forum/topics_helper.rb
my_forum-0.0.1.beta38 app/helpers/my_forum/topics_helper.rb
my_forum-0.0.1.beta37 app/helpers/my_forum/topics_helper.rb
my_forum-0.0.1.beta36 app/helpers/my_forum/topics_helper.rb
my_forum-0.0.1.beta35 app/helpers/my_forum/topics_helper.rb
my_forum-0.0.1.beta34 app/helpers/my_forum/topics_helper.rb
my_forum-0.0.1.beta33 app/helpers/my_forum/topics_helper.rb
my_forum-0.0.1.beta32 app/helpers/my_forum/topics_helper.rb
my_forum-0.0.1.beta31 app/helpers/my_forum/topics_helper.rb
my_forum-0.0.1.beta30 app/helpers/my_forum/topics_helper.rb
my_forum-0.0.1.beta29 app/helpers/my_forum/topics_helper.rb