diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/application_helper.rb | 7 | ||||
-rw-r--r-- | app/views/layouts/default.rhtml | 5 |
2 files changed, 9 insertions, 3 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 22a7940eb..07bc01d6d 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1,3 +1,10 @@ # Methods added to this helper will be available to all templates in the application. module ApplicationHelper + + # This was the best solution I could find to this, yeuch. + # http://www.ruby-forum.com/topic/88857 + def stylesheet_link_tag_html4( _n ) + return stylesheet_link_tag( _n ).gsub( ' />', '>' ) + end + end diff --git a/app/views/layouts/default.rhtml b/app/views/layouts/default.rhtml index 137c4ac81..8ec31ea19 100644 --- a/app/views/layouts/default.rhtml +++ b/app/views/layouts/default.rhtml @@ -1,10 +1,9 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en-gb"> <head> <!-- <script type="text/javascript" src="/js.js"></script> --> <title>Freedom of Information Filer and Archive <%= @title ? "-" : "" %> <%=@title%></title> - <%= stylesheet_link_tag 'main' %> - <!-- <link rel="alternate" type="application/rss+xml" title="" href=""> --> + <%= stylesheet_link_tag_html4 'main' %> </head> <body> <h1 id="header">Freedom of Information Filer and Archive <span id="beta">Beta</span></h1> |