agenda-libre-ruby/app/views/lugs/show.html.haml

35 lines
908 B
Plaintext
Raw Normal View History

- set_lug_meta
%h2
%em.fa.fa-users
= t 'lugs.search.title', entity: Lug.model_name.human
2014-07-27 01:50:22 +02:00
= render 'search'
%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?
%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 :related_region
%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
%iframe(src="#{@lug.url}" width='1000' height='400' frameborder='none'
allowTransparency='true')
%nav
= 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