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}",
|
||||
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
|
||||
|
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}") }
|
||||
%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…
Reference in New Issue
Block a user