The organisation favicon is now in its own template
This commit is contained in:
parent
0a1b7fcbe3
commit
0ad35f1fb7
@ -12,7 +12,7 @@
|
|||||||
%em.fa.fa-li{ class: "fa-#{orga.kind.icon}",
|
%em.fa.fa-li{ class: "fa-#{orga.kind.icon}",
|
||||||
title: Kind.human_attribute_name("name_#{orga.kind.name}") }
|
title: Kind.human_attribute_name("name_#{orga.kind.name}") }
|
||||||
= orga.name
|
= orga.name
|
||||||
= image_tag orga.url + '/favicon.ico', alt: '', class: :favicon
|
= render partial: '/orgas/favicon', locals: { orga: orga }
|
||||||
|
|
||||||
%h2
|
%h2
|
||||||
%em.fa.fa-wrench
|
%em.fa.fa-wrench
|
||||||
|
2
app/views/orgas/_favicon.html.haml
Normal file
2
app/views/orgas/_favicon.html.haml
Normal file
@ -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}") }
|
title: Kind.human_attribute_name("name_#{orga.kind.name}") }
|
||||||
%td.name
|
%td.name
|
||||||
= orga.name
|
= orga.name
|
||||||
- if orga.url =~ /^http/
|
= render partial: '/orgas/favicon', locals: { orga: orga }
|
||||||
= image_tag orga.url + '/favicon.ico', alt: '', class: :favicon
|
|
||||||
%td.city= orga.city
|
%td.city= orga.city
|
||||||
%td.department= orga.department
|
%td.department= orga.department
|
||||||
%td.region= orga.region
|
%td.region= orga.region
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
%em.fa{ class: "fa-#{@orga.kind.icon}",
|
%em.fa{ class: "fa-#{@orga.kind.icon}",
|
||||||
title: Kind.human_attribute_name("name_#{@orga.kind.name}") }
|
title: Kind.human_attribute_name("name_#{@orga.kind.name}") }
|
||||||
= title @orga.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'
|
= render 'aside' if controller.controller_name == 'orgas'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user