Skip to content

Commit

Permalink
Merge pull request #772 from paulrobinson/DEVELOPER-1213
Browse files Browse the repository at this point in the history
DEVELOPER-1213 Allow event images to be configured
  • Loading branch information
pmuir committed Feb 4, 2015
2 parents e3ac462 + 96924cb commit 78a8829
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions events.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ description: Discover the events and webinars featuring talks about JBoss produc
li
.event
.event-header
img(src="#{e['image_url'].nil? || e['image_url'].strip.empty? ? cdn(site.base_url + "/images/events/event-bg-1.jpg") : e['image_url']}" alt="#{e['title']} Image")
- if "community".casecmp(e['type']) == 0
img(src="#{e['image'].nil? || e['image'].strip.empty? || e['image'] == 'default' ? cdn(site.base_url + "/images/events/event-bg-1.jpg") : "http://static.jboss.org/images/events/event_" + e['image'] + ".png"}" alt="#{e['title']} Image")
- if "community".casecmp(e['type']) == 0 && e['image'] == 'default'
p Community Event
.event-body
div.event-date
Expand Down

0 comments on commit 78a8829

Please sign in to comment.