La page trouve ton Gull est mieux présentée

This commit is contained in:
echarp 2014-07-27 02:06:54 +02:00
parent 1947463e83
commit 5de285378d
3 changed files with 16 additions and 13 deletions

View File

@ -150,7 +150,6 @@ main
font-size: larger font-size: larger
line-height: 1.1em line-height: 1.1em
font-weight: bolder font-weight: bolder
vertical-align: middle
background-color: #9CC5EE background-color: #9CC5EE
@include box-shadow(2px 2px 2px gray) @include box-shadow(2px 2px 2px gray)
select, option select, option

View File

@ -13,6 +13,8 @@
- @lugs.each do |lug| - @lugs.each do |lug|
%tr %tr
%td %td
- if lug.url =~ /^http/
= image_tag lug.url+'/favicon.ico', alt: '', class: :favicon
= lug.name = lug.name
%td %td
= lug.city = lug.city
@ -21,10 +23,8 @@
%td %td
= lug.related_region = lug.related_region
%td %td
- if lug.url =~ /^http/
= image_tag lug.url+'/favicon.ico', alt: '', class: :favicon
= link_to lug.url, lug.url = link_to lug.url, lug.url
%td %td
= link_to t('show'), lug_url(lug, q: params[:q]), class: :view_link = link_to t('show'), lug_url(lug, q: params[:q], page: params[:page]), class: :view_link
= paginate @lugs = paginate @lugs

View File

@ -6,19 +6,23 @@
%h3 %h3
= image_tag @lug.url+'/favicon.ico', alt: '', class: :favicon = image_tag @lug.url+'/favicon.ico', alt: '', class: :favicon
= @lug.name = @lug.name
%dt= Lug.human_attribute_name :city - if @lug.city.present?
%dd= @lug.city %dt= Lug.human_attribute_name :city
%dt= Lug.human_attribute_name :department %dd= @lug.city
%dd= @lug.department - if @lug.department.present?
%dt= Lug.human_attribute_name :related_region %dt= Lug.human_attribute_name :department
%dd= @lug.related_region %dd= @lug.department
%dt= Lug.human_attribute_name :url - if @lug.related_region.present?
%dd= link_to @lug.url, @lug.url %dt= Lug.human_attribute_name :related_region
%dd= @lug.related_region
- if @lug.url.present?
%dt= Lug.human_attribute_name :url
%dd= link_to @lug.url, @lug.url
%iframe(src="#{@lug.url}" width='1000' height='400' frameborder='none' %iframe(src="#{@lug.url}" width='1000' height='400' frameborder='none'
allowTransparency='true') allowTransparency='true')
%nav %nav
= link_to lugs_path(q: params[:q]), class: :back do = link_to lugs_path(q: params[:q], page: params[:page]), class: :back do
%em.fa.fa-arrow-left %em.fa.fa-arrow-left
= Lug.model_name.human.pluralize = Lug.model_name.human.pluralize