Sha256: 0bbd301679836a465240a7d211a2e6c4b3f720080d143145ff0c163c8268a91c

Contents?: true

Size: 864 Bytes

Versions: 30

Compression:

Stored size: 864 Bytes

Contents

module ExportEmailHelper
  include EmailerHelper
  
  def formatted_txt_holding_status(view_data)
    output = ""

    output << view_data[:collection_str] if view_data[:collection_str]
    output << " " + view_data[:call_number] if view_data[:call_number]
    output << " " + view_data[:status] if view_data[:status]
    
    return output
  end

  def formatted_html_holding_status(view_data)
    output = "".html_safe

    
    if view_data[:collection_str]
      output << content_tag("span", view_data[:collection_str], :class => "collection") 
    end
    if view_data[:call_number]
      output << " ".html_safe << content_tag("span", view_data[:call_number], :class => "call_no")
    end
    if view_data[:status]
      output << " ".html_safe << content_tag("span", view_data[:status], :class => "status")
    end
      
    return output
  end



  
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
umlaut-3.0.3 app/helpers/export_email_helper.rb
umlaut-3.0.2 app/helpers/export_email_helper.rb
umlaut-3.0.1 app/helpers/export_email_helper.rb
umlaut-3.0.0 app/helpers/export_email_helper.rb
umlaut-3.0.0rc1 app/helpers/export_email_helper.rb
umlaut-3.0.0beta10 app/helpers/export_email_helper.rb
umlaut-3.0.0beta9 app/helpers/export_email_helper.rb
umlaut-3.0.0beta8 app/helpers/export_email_helper.rb
umlaut-3.0.0beta7 app/helpers/export_email_helper.rb
umlaut-3.0.0beta6 app/helpers/export_email_helper.rb
umlaut-3.0.0beta5 app/helpers/export_email_helper.rb
umlaut-3.0.0beta4 app/helpers/export_email_helper.rb
umlaut-3.0.0beta3 app/helpers/export_email_helper.rb
umlaut-3.0.0beta2 app/helpers/export_email_helper.rb
umlaut-3.0.0beta1 app/helpers/export_email_helper.rb
umlaut-3.0.0alpha15 app/helpers/export_email_helper.rb
umlaut-3.0.0alpha14 app/helpers/export_email_helper.rb
umlaut-3.0.0alpha13 app/helpers/export_email_helper.rb
umlaut-3.0.0alpha12 app/helpers/export_email_helper.rb
umlaut-3.0.0alpha11 app/helpers/export_email_helper.rb