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.2.4 app/helpers/my_forum/topics_helper.rb
my_forum-0.0.2.3 app/helpers/my_forum/topics_helper.rb
my_forum-0.0.2.2 app/helpers/my_forum/topics_helper.rb
my_forum-0.0.2.1 app/helpers/my_forum/topics_helper.rb
my_forum-0.0.2 app/helpers/my_forum/topics_helper.rb
my_forum-0.0.1.beta60 app/helpers/my_forum/topics_helper.rb
my_forum-0.0.1.beta59 app/helpers/my_forum/topics_helper.rb
my_forum-0.0.1.beta58 app/helpers/my_forum/topics_helper.rb
my_forum-0.0.1.beta57 app/helpers/my_forum/topics_helper.rb
my_forum-0.0.1.beta56 app/helpers/my_forum/topics_helper.rb
my_forum-0.0.1.beta55 app/helpers/my_forum/topics_helper.rb
my_forum-0.0.1.beta54 app/helpers/my_forum/topics_helper.rb
my_forum-0.0.1.beta53 app/helpers/my_forum/topics_helper.rb
my_forum-0.0.1.beta52 app/helpers/my_forum/topics_helper.rb
my_forum-0.0.1.beta51 app/helpers/my_forum/topics_helper.rb
my_forum-0.0.1.beta50 app/helpers/my_forum/topics_helper.rb
my_forum-0.0.1.beta49 app/helpers/my_forum/topics_helper.rb
my_forum-0.0.1.beta48 app/helpers/my_forum/topics_helper.rb
my_forum-0.0.1.beta47 app/helpers/my_forum/topics_helper.rb
my_forum-0.0.1.beta46 app/helpers/my_forum/topics_helper.rb