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

35 lines
872 B
Plaintext

%h2
%em.fa.fa-users
= title t 'lugs.search.title', entity: Lug.model_name.human
= render 'search'
%table.list.autopagerize_page_element
%thead
%th= sort_link @search, :name
%th= sort_link @search, :city
%th= sort_link @search, :department
%th= sort_link @search, :related_region_name, Lug.human_attribute_name(:related_region)
%th= sort_link @search, :url
%th/
%tbody
- @lugs.each do |lug|
%tr
%td
- if lug.url =~ /^http/
= image_tag lug.url+'/favicon.ico', alt: '', class: :favicon
= lug.name
%td
= lug.city
%td
= lug.department
%td
= lug.related_region
%td
= link_to lug.url, lug.url
%td
= link_to t('show'), lug_url(lug, q: params[:q], page: params[:page]), class: :view_link
= paginate @lugs