Module: ImagesHelper
- Defined in:
- app/helpers/images_helper.rb
Instance Method Summary collapse
- #button_fb_login ⇒ Object
- #image_3s(input) ⇒ Object
- #image_add ⇒ Object
- #image_cac ⇒ Object
- #image_city(cityname) ⇒ Object
- #image_close ⇒ Object
- #image_contact ⇒ Object
- #image_customize ⇒ Object
- #image_delete ⇒ Object
- #image_edit ⇒ Object
- #image_email ⇒ Object
- #image_expand ⇒ Object
- #image_expand_down ⇒ Object
- #image_expand_up ⇒ Object
- #image_extended_forms ⇒ Object
- #image_fb ⇒ Object
- #image_flag(locale) ⇒ Object
- #image_index ⇒ Object
- #image_ish ⇒ Object
- #image_logout ⇒ Object
- #image_missing(size = :thumb) ⇒ Object
- #image_my_profile ⇒ Object
- #image_new ⇒ Object
- #image_new_addritem ⇒ Object
- #image_new_photo ⇒ Object
- #image_new_report ⇒ Object
-
#image_or_missing(photo, size = :thumb) ⇒ Object
missing stuff.
- #image_ppf ⇒ Object
- #image_restart ⇒ Object
- #image_scratchpad ⇒ Object
- #image_search(args = {}) ⇒ Object
- #image_settings ⇒ Object
- #image_top ⇒ Object
- #image_vote_down ⇒ Object
- #image_vote_up ⇒ Object
- #missing ⇒ Object
- #missing?(item) ⇒ Boolean
-
#s3_image_tag(input) ⇒ Object
@deprecated, should use image_3s.
-
#video_thumb(video) ⇒ Object
@TODO:.
Instance Method Details
#button_fb_login ⇒ Object
20 21 22 |
# File 'app/helpers/images_helper.rb', line 20 def link_to image_tag('http://s3.amazonaws.com/ish-assets/loginWithFacebook.png'), (:facebook), :class => :fb end |
#image_3s(input) ⇒ Object
124 125 126 |
# File 'app/helpers/images_helper.rb', line 124 def image_3s input image_tag 'https://s3.amazonaws.com/ish-assets/' + input end |
#image_add ⇒ Object
90 91 92 |
# File 'app/helpers/images_helper.rb', line 90 def image_add image_tag 'new.png' end |
#image_cac ⇒ Object
98 99 100 |
# File 'app/helpers/images_helper.rb', line 98 def image_cac s3_image_tag 'cac.png' end |
#image_city(cityname) ⇒ Object
8 9 10 |
# File 'app/helpers/images_helper.rb', line 8 def image_city cityname image_tag 'icons/48x48/city.png' end |
#image_close ⇒ Object
78 79 80 |
# File 'app/helpers/images_helper.rb', line 78 def image_close image_tag('close.png') end |
#image_contact ⇒ Object
37 38 39 |
# File 'app/helpers/images_helper.rb', line 37 def image_contact image_tag 'http://s3.amazonaws.com/ish-assets/contact.png', :class => :contact end |
#image_customize ⇒ Object
12 13 14 |
# File 'app/helpers/images_helper.rb', line 12 def image_customize image_tag 'icons/28x28/customize.png' end |
#image_delete ⇒ Object
102 103 104 105 |
# File 'app/helpers/images_helper.rb', line 102 def image_delete # image_tag 'delete.png' '[x]' end |
#image_edit ⇒ Object
82 83 84 |
# File 'app/helpers/images_helper.rb', line 82 def image_edit image_tag('icons/24x24/edit.png', :alt => '[~]') end |
#image_email ⇒ Object
86 87 88 |
# File 'app/helpers/images_helper.rb', line 86 def image_email image_tag 'email.gif' end |
#image_expand ⇒ Object
28 29 30 31 |
# File 'app/helpers/images_helper.rb', line 28 def # image_tag 'icons/28x28/expand.png' image_tag 'icons/16x16/expand_down.png' end |
#image_expand_down ⇒ Object
33 34 35 |
# File 'app/helpers/images_helper.rb', line 33 def image_tag 'drag.png' end |
#image_expand_up ⇒ Object
41 42 43 |
# File 'app/helpers/images_helper.rb', line 41 def image_tag 'drag.png' end |
#image_extended_forms ⇒ Object
74 75 76 |
# File 'app/helpers/images_helper.rb', line 74 def image_extended_forms image_tag 'icons/64x64/extended_forms.png' end |
#image_fb ⇒ Object
120 121 122 |
# File 'app/helpers/images_helper.rb', line 120 def image_fb image_tag 'http://s3.amazonaws.com/ish-assets/loginWithFacebook.png' end |
#image_flag(locale) ⇒ Object
4 5 6 |
# File 'app/helpers/images_helper.rb', line 4 def image_flag locale image_tag "flags/#{locale.to_s}.png" end |
#image_index ⇒ Object
107 108 109 |
# File 'app/helpers/images_helper.rb', line 107 def image_index image_tag 'icons/32x32/list.png' end |
#image_ish ⇒ Object
53 54 55 56 |
# File 'app/helpers/images_helper.rb', line 53 def image_ish # image_tag 'logo.png' image_tag 'ish_logo_100.png' end |
#image_logout ⇒ Object
24 25 26 |
# File 'app/helpers/images_helper.rb', line 24 def image_logout image_tag 'icons/32x32/logout.png' end |
#image_missing(size = :thumb) ⇒ Object
153 154 155 156 157 158 159 160 161 162 |
# File 'app/helpers/images_helper.rb', line 153 def image_missing size = :thumb case size when :thumb image_tag 'no_photo.png' when :mini image_tag 'no_photo_mini.png' else image_tag 'no_photo.png' end end |
#image_my_profile ⇒ Object
196 197 198 |
# File 'app/helpers/images_helper.rb', line 196 def image_my_profile image_tag 'icons/64x64/my-profile.png' end |
#image_new ⇒ Object
111 112 113 |
# File 'app/helpers/images_helper.rb', line 111 def image_new image_tag 'icons/32x32/new.png', :alt => '[+]' end |
#image_new_addritem ⇒ Object
58 59 60 |
# File 'app/helpers/images_helper.rb', line 58 def image_new_addritem image_tag 'icons/64x64/new_addritem.png' end |
#image_new_photo ⇒ Object
16 17 18 |
# File 'app/helpers/images_helper.rb', line 16 def image_new_photo image_tag 'icons/48x48/new_photo.png' end |
#image_new_report ⇒ Object
49 50 51 |
# File 'app/helpers/images_helper.rb', line 49 def image_new_report image_tag 'icons/64x64/new_report.png' end |
#image_or_missing(photo, size = :thumb) ⇒ Object
missing stuff
138 139 140 141 142 143 144 145 146 147 148 149 150 151 |
# File 'app/helpers/images_helper.rb', line 138 def image_or_missing photo, size = :thumb if defined? photo.photo if defined? photo.photo.url if photo.photo.url == '/photos/original/missing.png' ; else return image_tag photo.photo.url(size) end end end image_missing end |
#image_ppf ⇒ Object
45 46 47 |
# File 'app/helpers/images_helper.rb', line 45 def image_ppf image_tag 'ppf.gif' end |
#image_restart ⇒ Object
192 193 194 |
# File 'app/helpers/images_helper.rb', line 192 def image_restart t('apps.restart') end |
#image_scratchpad ⇒ Object
66 67 68 |
# File 'app/helpers/images_helper.rb', line 66 def image_scratchpad image_tag 'icons/64x64/scratchpad.png' end |
#image_search(args = {}) ⇒ Object
94 95 96 |
# File 'app/helpers/images_helper.rb', line 94 def image_search args = {} image_tag 'icons/16x16/search.png', args end |
#image_settings ⇒ Object
70 71 72 |
# File 'app/helpers/images_helper.rb', line 70 def image_settings image_tag 'icons/64x64/settings.png' end |
#image_top ⇒ Object
62 63 64 |
# File 'app/helpers/images_helper.rb', line 62 def image_top image_tag('top.gif') end |
#image_vote_down ⇒ Object
184 185 186 |
# File 'app/helpers/images_helper.rb', line 184 def image_vote_down image_tag 'icons/32x32/thumbs_down.png', :width => '16px' end |
#image_vote_up ⇒ Object
180 181 182 |
# File 'app/helpers/images_helper.rb', line 180 def image_vote_up image_tag 'icons/32x32/thumbs_up.png', :width => '16px' end |
#missing ⇒ Object
164 165 166 |
# File 'app/helpers/images_helper.rb', line 164 def missing image_missing end |
#missing?(item) ⇒ Boolean
168 169 170 171 172 173 174 175 176 177 178 |
# File 'app/helpers/images_helper.rb', line 168 def missing? item if defined? item.photo and defined? item.photo.url if item.photo.url == "/photos/original/missing.png" return true else return false end end return true end |
#s3_image_tag(input) ⇒ Object
@deprecated, should use image_3s
116 117 118 |
# File 'app/helpers/images_helper.rb', line 116 def s3_image_tag input image_tag 'https://s3.amazonaws.com/ish-assets/' + input end |
#video_thumb(video) ⇒ Object
@TODO:
129 130 131 132 |
# File 'app/helpers/images_helper.rb', line 129 def video_thumb video warn 'todo wtf?' image_tag 'no_image.png' end |