Sha256: 6b94dbe6d0b530935f018f2a95692f472264b05d45e623062d6265abab724073

Contents?: true

Size: 572 Bytes

Versions: 17

Compression:

Stored size: 572 Bytes

Contents

module EffectiveEmailTemplatesHelper
  def datatable_of(description_of_objects, datatable)
    if datatable.nil?
      content_tag(:p, "Please use Effective Datatables gem")
    elsif datatable.collection.length > 0
      render_datatable(datatable)
    else
      content_tag(:p, "There are no email templates")
    end
  end

  def email_template_form_url( email_template )
    if email_template.new_record?
      effective_email_templates.admin_email_templates_path
    else
      effective_email_templates.admin_email_template_path( email_template )
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
effective_email_templates-0.6.1 app/helpers/effective_email_templates_helper.rb
effective_email_templates-0.6.0 app/helpers/effective_email_templates_helper.rb
effective_email_templates-0.5.1 app/helpers/effective_email_templates_helper.rb
effective_email_templates-0.5.0 app/helpers/effective_email_templates_helper.rb
effective_email_templates-0.4.6 app/helpers/effective_email_templates_helper.rb
effective_email_templates-0.4.5 app/helpers/effective_email_templates_helper.rb
effective_email_templates-0.4.4 app/helpers/effective_email_templates_helper.rb
effective_email_templates-0.4.3 app/helpers/effective_email_templates_helper.rb
effective_email_templates-0.4.2 app/helpers/effective_email_templates_helper.rb
effective_email_templates-0.4.1 app/helpers/effective_email_templates_helper.rb
effective_email_templates-0.4.0 app/helpers/effective_email_templates_helper.rb
effective_email_templates-0.3.5 app/helpers/effective_email_templates_helper.rb
effective_email_templates-0.3.4 app/helpers/effective_email_templates_helper.rb
effective_email_templates-0.3.3 app/helpers/effective_email_templates_helper.rb
effective_email_templates-0.3.1 app/helpers/effective_email_templates_helper.rb
effective_email_templates-0.3.0 app/helpers/effective_email_templates_helper.rb
effective_email_templates-0.2.8 app/helpers/effective_email_templates_helper.rb