aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/layouts/admin.rhtml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/layouts/admin.rhtml')
-rw-r--r--app/views/layouts/admin.rhtml42
1 files changed, 20 insertions, 22 deletions
diff --git a/app/views/layouts/admin.rhtml b/app/views/layouts/admin.rhtml
index cdbd37219..71618f755 100644
--- a/app/views/layouts/admin.rhtml
+++ b/app/views/layouts/admin.rhtml
@@ -1,27 +1,25 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html lang="en-gb">
+ <head>
+ <meta http-equiv="content-type" content="text/html;charset=UTF-8" >
+ <title>FOIFA admin<%= @title ? ":" : "" %> <%=@title%></title>
+ <%
+ # Have to do explicit tag for stylesheet, to get absolute path on main server
+ %>
+ <%= tag("link", { "rel" => "Stylesheet", "type" => "text/css", "media" => "screen", "href" => admin_public_url(stylesheet_path('admin')) }) %>
+ <%= tag("link", { "rel" => "Stylesheet", "type" => "text/css", "media" => "screen", "href" => admin_public_url(stylesheet_path('scaffold')) }) %>
+ </head>
+ <body>
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
- <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
- <title>FOIFA admin<%= @title ? ":" : "" %> <%=@title%></title>
- <%
- # Have to do explicit tag for stylesheet, to get absolute path on main server
- %>
- <%= tag("link", { "rel" => "Stylesheet", "type" => "text/css", "media" => "screen", "href" => admin_public_url(stylesheet_path('admin')) }) %>
- <%= tag("link", { "rel" => "Stylesheet", "type" => "text/css", "media" => "screen", "href" => admin_public_url(stylesheet_path('scaffold')) }) %>
-</head>
-<body>
+ <p><b>FOIFA admin interface:</b>
+ <%= link_to 'Public bodies', admin_url('body/list') %>
+ | <%= link_to 'Requests', admin_url('request/list') %>
+ | <%= link_to 'Users', admin_url('user/list') %>
+ </p>
-<p><b>FOIFA admin interface:</b>
-<%= link_to 'Public bodies', admin_url('body/list') %>
-| <%= link_to 'Requests', admin_url('request/list') %>
-| <%= link_to 'Users', admin_url('user/list') %>
-</p>
+ <p style="color: green"><%= flash[:notice] %></p>
-<p style="color: green"><%= flash[:notice] %></p>
+ <%= yield %>
-<%= yield %>
-
-</body>
+ </body>
</html>