diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-09-18 14:52:57 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-09-18 14:52:57 +0100 |
commit | b984c930f1ec48ef635246b37a467006d1e584d8 (patch) | |
tree | ba8863a8970ce61cecf32cad19a42a3e5e1072d0 | |
parent | 46bdfbd5fc3c29968f139d0aac3064204b7e6058 (diff) |
Make favicon its own partial
This is something you should be able to override without having to take
on the maintenance of your own layout.
-rw-r--r-- | app/views/layouts/_favicon.html.erb | 1 | ||||
-rw-r--r-- | app/views/layouts/default.html.erb | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/app/views/layouts/_favicon.html.erb b/app/views/layouts/_favicon.html.erb new file mode 100644 index 000000000..4f3859d6c --- /dev/null +++ b/app/views/layouts/_favicon.html.erb @@ -0,0 +1 @@ +<link rel="shortcut icon" href="/favicon.ico"> diff --git a/app/views/layouts/default.html.erb b/app/views/layouts/default.html.erb index 472fa8ec1..5895becf7 100644 --- a/app/views/layouts/default.html.erb +++ b/app/views/layouts/default.html.erb @@ -10,7 +10,7 @@ <% end %> </title> - <link rel="shortcut icon" href="/favicon.ico"> + <%= render :partial => 'layouts/favicon' %> <%= render :partial => 'general/stylesheet_includes' %> <% if is_admin? %> |