Update favicon and titles

This commit is contained in:
Luke Barratt 2014-05-16 22:24:49 +01:00
parent 7bd375b667
commit 1a4a0f4d83
6 changed files with 8 additions and 8 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

View file

@ -1,6 +1,6 @@
module ApplicationHelper module ApplicationHelper
def full_title(page_title) def full_title(page_title)
base_title = "ENSL" base_title = "NSL"
if page_title.empty? if page_title.empty?
base_title base_title
@ -10,7 +10,7 @@ module ApplicationHelper
end end
def active_theme def active_theme
'flat' 'default'
end end
def theme_stylesheet_link_tag def theme_stylesheet_link_tag

View file

@ -5,7 +5,7 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"> <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
<meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="icon" type="image/png" href="/favicon.png" /> <%= favicon_link_tag 'shared/favicon.ico' %>
<%= theme_stylesheet_link_tag %> <%= theme_stylesheet_link_tag %>
<%= javascript_include_tag 'application' %> <%= javascript_include_tag 'application' %>
<%= csrf_meta_tag %> <%= csrf_meta_tag %>

View file

@ -5,7 +5,7 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"> <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
<meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="icon" type="image/png" href="/favicon.png" /> <%= favicon_link_tag 'shared/favicon.ico' %>
<%= stylesheet_link_tag "themes/#{active_theme}/errors" %> <%= stylesheet_link_tag "themes/#{active_theme}/errors" %>
</head> </head>
<body> <body>

View file

@ -1,11 +1,11 @@
<!doctype html> <!doctype html>
<html> <html>
<head> <head>
<title>ENSL</title> <title><%= full_title(yield(:title)) %></title>
<meta charset="utf-8"> <meta charset="utf-8">
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"> <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
<meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="icon" type="image/png" href="/favicon.png" /> <%= favicon_link_tag 'shared/favicon.ico' %>
<%= theme_stylesheet_link_tag %> <%= theme_stylesheet_link_tag %>
<%= javascript_include_tag 'application' %> <%= javascript_include_tag 'application' %>
<%= csrf_meta_tag %> <%= csrf_meta_tag %>

View file

@ -1,11 +1,11 @@
<!doctype html> <!doctype html>
<html> <html>
<head> <head>
<title>ENSL</title> <title><%= full_title(yield(:title)) %></title>
<meta charset="utf-8"> <meta charset="utf-8">
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"> <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
<meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="icon" type="image/png" href="/favicon.png" /> <%= favicon_link_tag 'shared/favicon.ico' %>
<%= theme_stylesheet_link_tag %> <%= theme_stylesheet_link_tag %>
<%= javascript_include_tag 'application' %> <%= javascript_include_tag 'application' %>
<%= csrf_meta_tag %> <%= csrf_meta_tag %>