Sha256: 7149efa5289cf76b97a9ca199374c57999dc770feeff5ad16cf40b6790bc7c9a

Contents?: true

Size: 696 Bytes

Versions: 8

Compression:

Stored size: 696 Bytes

Contents

# Copyright (c) 2008-2013 Michael Dvorkin and contributors.
#
# Fat Free CRM is freely distributable under the terms of MIT license.
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
#------------------------------------------------------------------------------
module CommentsHelper

  # Generates a list of links for the subscribed users
  def subscribed_user_links(users)
    links = users.map {|user| link_to(user.full_name, user_path(user)) }
    links.join(", ").html_safe
  end

  def notification_emails_configured?
    config = Setting.email_comment_replies || {}
    config[:server].present? && config[:user].present? && config[:password].present?
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fat_free_crm-0.13.3 app/helpers/comments_helper.rb
fat_free_crm-0.13.2 app/helpers/comments_helper.rb
fat_free_crm-0.12.3 app/helpers/comments_helper.rb
fat_free_crm-0.12.2 app/helpers/comments_helper.rb
fat_free_crm-0.13.1 app/helpers/comments_helper.rb
fat_free_crm-0.12.1 app/helpers/comments_helper.rb
fat_free_crm-0.13.0 app/helpers/comments_helper.rb
fat_free_crm-0.12.0 app/helpers/comments_helper.rb