Module: InsteddRails::MailerHelper
- Defined in:
- app/helpers/instedd_rails/mailer_helper.rb
Instance Method Summary collapse
- #advertised_link(name, url) ⇒ Object
- #application_name ⇒ Object
- #body ⇒ Object
- #content ⇒ Object
- #footer ⇒ Object
- #h1 ⇒ Object
- #h2 ⇒ Object
- #header ⇒ Object
- #hr ⇒ Object
- #link(url) ⇒ Object
- #orange_button ⇒ Object
- #small_orange_link(url) ⇒ Object
Instance Method Details
#advertised_link(name, url) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'app/helpers/instedd_rails/mailer_helper.rb', line 8 def advertised_link name, url (link url do do name end end) + (tag :br) + (small_orange_link url do url end) end |
#application_name ⇒ Object
4 5 6 |
# File 'app/helpers/instedd_rails/mailer_helper.rb', line 4 def application_name InsteddRails.config.application_name end |
#body ⇒ Object
20 21 22 23 24 |
# File 'app/helpers/instedd_rails/mailer_helper.rb', line 20 def body content_tag :div, :style => style_for(body_style) do yield end end |
#content ⇒ Object
26 27 28 29 30 |
# File 'app/helpers/instedd_rails/mailer_helper.rb', line 26 def content content_tag :div, :style => style_for(content_style) do yield end end |
#footer ⇒ Object
38 39 40 41 42 |
# File 'app/helpers/instedd_rails/mailer_helper.rb', line 38 def content_tag :div, :style => style_for() do yield end end |
#h1 ⇒ Object
44 45 46 47 48 |
# File 'app/helpers/instedd_rails/mailer_helper.rb', line 44 def h1 content_tag :h1, :style => style_for(h1_style) do yield end end |
#h2 ⇒ Object
50 51 52 53 54 |
# File 'app/helpers/instedd_rails/mailer_helper.rb', line 50 def h2 content_tag :h2, :style => style_for(h2_style) do yield end end |
#header ⇒ Object
32 33 34 35 36 |
# File 'app/helpers/instedd_rails/mailer_helper.rb', line 32 def header content_tag :div, :style => style_for(header_style) do yield end end |
#hr ⇒ Object
56 57 58 |
# File 'app/helpers/instedd_rails/mailer_helper.rb', line 56 def hr tag :hr, :style => style_for(hr_style) end |
#link(url) ⇒ Object
60 61 62 63 64 |
# File 'app/helpers/instedd_rails/mailer_helper.rb', line 60 def link url content_tag :a, :href => url, :style => style_for(a_style) do yield end end |
#orange_button ⇒ Object
72 73 74 75 76 |
# File 'app/helpers/instedd_rails/mailer_helper.rb', line 72 def content_tag :button, :style => style_for() do yield end end |
#small_orange_link(url) ⇒ Object
66 67 68 69 70 |
# File 'app/helpers/instedd_rails/mailer_helper.rb', line 66 def small_orange_link url content_tag :a, :href => url, :style => style_for(a_orange_style.merge(small_style)) do yield end end |