Sha256: 1641ba0291614209349fe0c97524a4d9dc80c6e0d65b2b002ffe847d88dcf7d7

Contents?: true

Size: 326 Bytes

Versions: 6

Compression:

Stored size: 326 Bytes

Contents

module MyForum
  module TopicsHelper

    def topic_last_post_info(topic)
      html  = content_tag(:div, 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
      true
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
my_forum-0.0.1.beta8 app/helpers/my_forum/topics_helper.rb
my_forum-0.0.1.beta7 app/helpers/my_forum/topics_helper.rb
my_forum-0.0.1.beta5 app/helpers/my_forum/topics_helper.rb
my_forum-0.0.1.beta4 app/helpers/my_forum/topics_helper.rb
my_forum-0.0.1.beta3 app/helpers/my_forum/topics_helper.rb
my_forum-0.0.1.beta2 app/helpers/my_forum/topics_helper.rb