Fixed conferences page

This commit is contained in:
Godwin
2016-12-25 11:23:10 -08:00
parent acecac312f
commit 20bacdcc2d
4 changed files with 19 additions and 3 deletions
+3 -2
View File
@@ -21,12 +21,13 @@
%h3=_"articles.conferences.headings.types.#{type.to_s}", :t
%ul
- list.each do | conference |
%li.conference{id: "conference-#{conference.id}", data: {a: conference.city.latitude, o: conference.city.longitude, y: conference.year, t: conference.conferencetype}}
%li.conference{id: "conference-#{conference.id}", data: {a: conference.city.latitude, o: conference.city.longitude, y: conference.year, t: conference.conferencetype}, class: conference.is_public ? nil : 'not-public'}
.info
%h4.title= conference.title
.conference-details
.location=location(conference.city)
.date= date_span(conference.start_date.to_date, conference.end_date.to_date)
- if conference.start_date.present? && conference.end_date.present?
.date= date_span(conference.start_date.to_date, conference.end_date.to_date)
.actions
= link_to (_'articles.workshops.info.read_more'), conference_path(conference.slug), class: ['button', 'conference-link', 'small']
- if logged_in?