We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42ece73 commit 9492db9Copy full SHA for 9492db9
app/helpers/conclave/events_helper.rb
@@ -1,6 +1,16 @@
1
module Conclave
2
module EventsHelper
3
4
+ def icon_for_event(event, size, options={})
5
+ if event.icon?
6
+ photo_url = event.icon.url(size)
7
+ options.merge!(:alt => I18n.t("tog_conclave.helper.photo_for_event", :name => event.title))
8
+ return image_tag(photo_url, options) if photo_url
9
+ else
10
+ return image_tag("/tog_conclave/images/#{config["plugins.tog_conclave.image.default"]}" , options)
11
+ end
12
13
+
14
def write_event_time(event)
15
"#{I18n.t('tog_conclave.site.from_time')} #{event.starting_time} #{I18n.t('tog_conclave.site.to_time')} #{event.ending_time}"
16
end
0 commit comments