Buttons to view or edit an organisation have an appropriate title, plus
the tag column is not so large anymore
This commit is contained in:
echarp 2019-05-01 20:45:33 +02:00
parent 90e3d0702c
commit b10d5a7328
7 changed files with 25 additions and 25 deletions

View File

@ -90,12 +90,12 @@ header.top
nav nav
float: right float: right
font-size: smaller font-size: smaller
margin-top: -3.1em margin-top: -3em
form .digest, form
margin-top: 1.9em margin-top: 2em
&:hover nav &:hover nav
margin-top: 0 margin-top: 0
form .digest, form
margin-top: 0 margin-top: 0
main, body.mce-content-body main, body.mce-content-body

View File

@ -21,7 +21,7 @@ table
td td
padding: 0.2em padding: 0.2em
text-align: left text-align: left
&.updated_at &.kind, &.updated_at
text-align: center text-align: center
dl dl

View File

@ -5,6 +5,3 @@ body.pages main
.digest .digest
float: right float: right
font-size: larger font-size: larger
margin-top: 1em
span
margin-left: 1em

View File

@ -12,15 +12,8 @@
%th.department= sort_link @search, :department %th.department= sort_link @search, :department
%th.region= sort_link @search, %th.region= sort_link @search,
:region_name, Orga.human_attribute_name(:region) :region_name, Orga.human_attribute_name(:region)
%th.tags= sort_link @search, :tags, Orga.human_attribute_name(:tags)
%th.updated_at= sort_link @search, %th.updated_at= sort_link @search,
:updated_at, Orga.human_attribute_name(:updated_at) :updated_at
%th
%th
%th
%th.view/
%th.edit/
%tbody %tbody
- @orgas.each do |orga| - @orgas.each do |orga|
%tr{ class: orga.active ? 'active' : 'inactive' } %tr{ class: orga.active ? 'active' : 'inactive' }
@ -34,26 +27,30 @@
%td.city= orga.city %td.city= orga.city
%td.department= orga.department %td.department= orga.department
%td.region= orga.region %td.region= orga.region
%td.tags= orga.tag_list
%td.updated_at %td.updated_at
- if orga.updated_at.present? - if orga.updated_at.present?
= l orga.updated_at.to_date = l orga.updated_at.to_date
%td.url %td.tags{ title: orga.tag_list }
- if orga.tags.count > 1
%em.fa.fa-tags
- elsif orga.tags.count.positive?
%em.fa.fa-tag
%td.url{ title: Orga.human_attribute_name(:url) }
- if orga.url.present? - if orga.url.present?
= link_to orga.url do = link_to orga.url do
%em.fa.fa-external-link-alt{ title: Orga.human_attribute_name(:url) } %em.fa.fa-external-link-alt
%td.diaspora %td.diaspora{ title: Orga.human_attribute_name(:diaspora) + '*' }
- if orga.diaspora.present? - if orga.diaspora.present?
= link_to orga.diaspora do = link_to orga.diaspora do
%em.fa{ title: Orga.human_attribute_name(:diaspora) + '*' } %em.fa
%td.feed %td.feed{ title: Orga.human_attribute_name(:feed) }
- if orga.feed.present? - if orga.feed.present?
= link_to orga.feed do = link_to orga.feed do
%em.fa.fa-rss{ title: Orga.human_attribute_name(:feed) } %em.fa.fa-rss
%td.view %td.view{ title: t('.view') }
= link_to orga_path orga, q: params[:q].permit, page: params[:page] do = link_to orga_path orga, q: params[:q].permit, page: params[:page] do
%em.fa.fa-eye %em.fa.fa-eye
%td.edit %td.edit{ title: t('.edit') }
- if orga.secret.nil? || user_signed_in? - if orga.secret.nil? || user_signed_in?
= link_to edit_orga_path orga do = link_to edit_orga_path orga do
%em.fa.fa-edit %em.fa.fa-edit

View File

@ -256,6 +256,8 @@ description."
index: index:
title: Organisations title: Organisations
new: Add an organisation new: Add an organisation
view: View organisation
edit: Edit organisation
aside: aside:
links: See also links: See also
actions: Actions actions: Actions

View File

@ -272,6 +272,8 @@ description plus complète."
index: index:
title: Organisations title: Organisations
new: Ajouter une organisation new: Ajouter une organisation
view: Afficher l'organisation
edit: Éditer l'organisation
aside: aside:
links: Voir aussi links: Voir aussi
actions: Actions actions: Actions

View File

@ -255,6 +255,8 @@ descrição mais completa."
index: index:
title: Organizações title: Organizações
new: Adicione uma organização new: Adicione uma organização
view: Veja organização
edit: Editar organização
aside: aside:
links: Veja também links: Veja também
actions: Ações actions: Ações