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

35 lines
908 B
Plaintext

- set_lug_meta
%h2
%em.fa.fa-users
= t 'lugs.search.title', entity: Lug.model_name.human
= 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
%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
%em.fa.fa-arrow-left
= Lug.model_name.human.pluralize