The organisation favicon is now in its own template

remotes/origin/master
echarp 4 years ago
parent 0a1b7fcbe3
commit 0ad35f1fb7
  1. 2
      app/views/events/_aside.html.haml
  2. 2
      app/views/orgas/_favicon.html.haml
  3. 3
      app/views/orgas/index.html.haml
  4. 2
      app/views/orgas/show.html.haml

@ -12,7 +12,7 @@
%em.fa.fa-li{ class: "fa-#{orga.kind.icon}",
title: Kind.human_attribute_name("name_#{orga.kind.name}") }
= orga.name
= image_tag orga.url + '/favicon.ico', alt: '', class: :favicon
= render partial: '/orgas/favicon', locals: { orga: orga }
%h2
%em.fa.fa-wrench

@ -0,0 +1,2 @@
- if orga.url.match?(/^http/) && !orga.url.match?(/facebook/)
= image_tag orga.url + '/favicon.ico', alt: '', class: :favicon

@ -30,8 +30,7 @@
title: Kind.human_attribute_name("name_#{orga.kind.name}") }
%td.name
= orga.name
- if orga.url =~ /^http/
= image_tag orga.url + '/favicon.ico', alt: '', class: :favicon
= render partial: '/orgas/favicon', locals: { orga: orga }
%td.city= orga.city
%td.department= orga.department
%td.region= orga.region

@ -5,7 +5,7 @@
%em.fa{ class: "fa-#{@orga.kind.icon}",
title: Kind.human_attribute_name("name_#{@orga.kind.name}") }
= title @orga.name
= image_tag @orga.url + '/favicon.ico', alt: '', class: :favicon
= render partial: '/orgas/favicon', locals: { orga: @orga }
= render 'aside' if controller.controller_name == 'orgas'

Loading…
Cancel
Save