Browse Source

Moved orga flag after its region

remotes/origin/master
echarp 2 years ago
parent
commit
7793de5e34
  1. 2
      app/views/orgas/_orga.html.haml
  2. 3
      app/views/orgas/index.html.haml

2
app/views/orgas/_orga.html.haml

@ -1,5 +1,4 @@
%tr{ class: orga.active ? 'active' : 'inactive' }
%td.flag= flag_icon orga.region.flag
%td.kind
- if orga.kind
%em.fa{ class: "fa-#{orga.kind.icon}",
@ -9,6 +8,7 @@
= render partial: '/orgas/favicon', locals: { orga: orga }
%td.city= orga.city
%td.region= orga.region
%td.flag= flag_icon orga.region.flag
%td.updated_at
- if orga.updated_at.present?
= l orga.updated_at.to_date

3
app/views/orgas/index.html.haml

@ -8,10 +8,9 @@
%table.list.autopagerize_page_element
%thead
%th.flag
%th.name(colspan='2')= sort_link @search, :name
%th.city= sort_link @search, :city
%th.region= sort_link @search,
%th.region(colspan='2')= sort_link @search,
:region_name, Orga.human_attribute_name(:region)
%th.updated_at= sort_link @search, :updated_at

Loading…
Cancel
Save