2014-08-06 14:47:47 +02:00
|
|
|
- set_lug_meta
|
|
|
|
|
2014-10-13 22:50:59 +02:00
|
|
|
= render 'search'
|
|
|
|
|
2014-07-29 00:00:13 +02:00
|
|
|
%h2
|
2014-10-13 22:50:59 +02:00
|
|
|
= image_tag @lug.url+'/favicon.ico', alt: '', class: :favicon
|
|
|
|
= title @lug.name
|
2014-07-29 00:00:13 +02:00
|
|
|
|
2014-10-13 22:50:59 +02:00
|
|
|
%iframe(src="#{@lug.url}" width='1000' height='300' frameborder='none'
|
|
|
|
allowTransparency='true')
|
2014-07-27 01:50:22 +02:00
|
|
|
|
|
|
|
%dl
|
2014-07-27 02:06:54 +02:00
|
|
|
- if @lug.city.present?
|
|
|
|
%dt= Lug.human_attribute_name :city
|
|
|
|
%dd= @lug.city
|
|
|
|
- if @lug.department.present?
|
|
|
|
%dt= Lug.human_attribute_name :department
|
|
|
|
%dd= @lug.department
|
|
|
|
- if @lug.related_region.present?
|
2014-10-13 22:50:59 +02:00
|
|
|
%dt= Lug.human_attribute_name :region
|
2014-07-27 02:06:54 +02:00
|
|
|
%dd= @lug.related_region
|
|
|
|
- if @lug.url.present?
|
|
|
|
%dt= Lug.human_attribute_name :url
|
|
|
|
%dd= link_to @lug.url, @lug.url
|
2014-07-27 01:50:22 +02:00
|
|
|
|
2014-10-13 22:50:59 +02:00
|
|
|
- if @events_future.any? || @events_past.any?
|
|
|
|
%fieldset
|
|
|
|
%legend
|
|
|
|
%em.fa.fa-calendar
|
|
|
|
= Event.model_name.human.pluralize
|
|
|
|
%ul
|
|
|
|
- @events_future.order('start_time asc').each do |event|
|
|
|
|
%li
|
|
|
|
= link_to event do
|
|
|
|
- if event.locality?
|
|
|
|
%em.locality.fa.fa-globe(title="#{Event.human_attribute_name :locality} #{t 'attributes.locality_1'}")
|
|
|
|
- else
|
|
|
|
%em.locality.fa.fa-shield(title="#{Event.human_attribute_name :locality} #{t 'attributes.locality_0'}")
|
|
|
|
%em.city= event.city
|
|
|
|
= event.title
|
|
|
|
= display_date event
|
|
|
|
|
|
|
|
%hr
|
|
|
|
|
|
|
|
%ul
|
|
|
|
- @events_past.order('start_time desc').each do |event|
|
|
|
|
%li
|
|
|
|
= link_to event do
|
|
|
|
- if event.locality?
|
|
|
|
%em.locality.fa.fa-globe(title="#{Event.human_attribute_name :locality} #{t 'attributes.locality_1'}")
|
|
|
|
- else
|
|
|
|
%em.locality.fa.fa-shield(title="#{Event.human_attribute_name :locality} #{t 'attributes.locality_0'}")
|
|
|
|
%em.city= event.city
|
|
|
|
= event.title
|
|
|
|
= display_date event
|
2014-07-27 01:50:22 +02:00
|
|
|
|
|
|
|
%nav
|
2014-07-27 02:06:54 +02:00
|
|
|
= link_to lugs_path(q: params[:q], page: params[:page]), class: :back do
|
2014-07-27 01:50:22 +02:00
|
|
|
%em.fa.fa-arrow-left
|
|
|
|
= Lug.model_name.human.pluralize
|