Skip to content
Extraits de code Groupes Projets
Valider 0d06f2ee rédigé par echarp's avatar echarp
Parcourir les fichiers

Évolution de la page pour association

parent 0cc1c4d0
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
@import font-awesome @import font-awesome
* *
height: auto
padding: 0 padding: 0
max-width: 100% max-width: 100%
margin-left: auto margin-left: auto
...@@ -138,6 +137,9 @@ main, body.mce-content-body ...@@ -138,6 +137,9 @@ main, body.mce-content-body
min-height: 100% min-height: 100%
font-family: georgia, serif font-family: georgia, serif
iframe
border: none
fieldset fieldset
border: none border: none
margin: 1em auto margin: 1em auto
......
...@@ -30,13 +30,14 @@ dl ...@@ -30,13 +30,14 @@ dl
text-align: right text-align: right
dd dd
padding: 0.2em 1em padding: 0.2em 1em
border-top: 1px solid #999
text-align: left text-align: left
&.quantity &.quantity
text-align: right text-align: right
padding-right: 16em padding-right: 16em
h3 h3
display: inline display: inline
dt + dd + dt +dd
border-top: 1px solid #999
.view_link:link, .edit_link:link, .delete_link:link .view_link:link, .edit_link:link, .delete_link:link
font-size: 0 font-size: 0
......
...@@ -36,3 +36,18 @@ form#lug_search ...@@ -36,3 +36,18 @@ form#lug_search
color: #2E97FF color: #2E97FF
span.label span.label
display: none display: none
body.lugs.show
iframe
display: block
max-width: 100%
margin-bottom: 2em
+border-radius(1em)
dl
margin-left: 4%
margin-right: 4%
dl, fieldset
display: inline-block
min-width: 30em
vertical-align: top
...@@ -10,6 +10,9 @@ class LugsController < ApplicationController ...@@ -10,6 +10,9 @@ class LugsController < ApplicationController
def show def show
@search = Lug.search params[:q] @search = Lug.search params[:q]
@events_future = Event.moderated.future.tag @lug.name
@events_past = Event.moderated.past.tag @lug.name
end end
private private
......
- set_lug_meta - set_lug_meta
= render 'search'
%h2 %h2
%em.fa.fa-users = image_tag @lug.url+'/favicon.ico', alt: '', class: :favicon
= t 'lugs.search.title', entity: Lug.model_name.human = title @lug.name
= render 'search' %iframe(src="#{@lug.url}" width='1000' height='300' frameborder='none'
allowTransparency='true')
%dl %dl
%dt= Lug.human_attribute_name :name
%dd
%h3
= image_tag @lug.url+'/favicon.ico', alt: '', class: :favicon
= title @lug.name
- if @lug.city.present? - if @lug.city.present?
%dt= Lug.human_attribute_name :city %dt= Lug.human_attribute_name :city
%dd= @lug.city %dd= @lug.city
...@@ -19,14 +17,42 @@ ...@@ -19,14 +17,42 @@
%dt= Lug.human_attribute_name :department %dt= Lug.human_attribute_name :department
%dd= @lug.department %dd= @lug.department
- if @lug.related_region.present? - if @lug.related_region.present?
%dt= Lug.human_attribute_name :related_region %dt= Lug.human_attribute_name :region
%dd= @lug.related_region %dd= @lug.related_region
- if @lug.url.present? - if @lug.url.present?
%dt= Lug.human_attribute_name :url %dt= Lug.human_attribute_name :url
%dd= link_to @lug.url, @lug.url %dd= link_to @lug.url, @lug.url
%iframe(src="#{@lug.url}" width='1000' height='400' frameborder='none' - if @events_future.any? || @events_past.any?
allowTransparency='true') %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
%nav %nav
= link_to lugs_path(q: params[:q], page: params[:page]), class: :back do = link_to lugs_path(q: params[:q], page: params[:page]), class: :back do
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter