Skip to content
Extraits de code Groupes Projets
show.html.haml 1,85 ko
Newer Older
= render 'search'

  = image_tag @lug.url+'/favicon.ico', alt: '', class: :favicon
  = title @lug.name
%iframe(src="#{@lug.url}" width='1280' height='300' frameborder='none'
  allowTransparency='true')
echarp's avatar
echarp a validé

%dl
  - 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?
    %dt= Lug.human_attribute_name :region
    %dd= @lug.related_region
  - if @lug.url.present?
    %dt= Lug.human_attribute_name :url
    %dd= link_to @lug.url, @lug.url
echarp's avatar
echarp a validé

- 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
echarp's avatar
echarp a validé

%nav
  = link_to lugs_path(q: params[:q], page: params[:page]), class: :back do
echarp's avatar
echarp a validé
    %em.fa.fa-arrow-left
    = Lug.model_name.human.pluralize