diff options
author | francis <francis> | 2007-12-18 17:56:41 +0000 |
---|---|---|
committer | francis <francis> | 2007-12-18 17:56:41 +0000 |
commit | 6db4dfad5aa687d17f45e7f3e3b3b13724bce3b2 (patch) | |
tree | 25292a2aee52c695628f0050433023770f0de019 | |
parent | 5786af7b470f37f256d5d673c8fc37647b49886d (diff) |
Absolute path for admin stylesheets.
-rw-r--r-- | app/views/layouts/admin.rhtml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/views/layouts/admin.rhtml b/app/views/layouts/admin.rhtml index 1dd4dc89f..c405e8851 100644 --- a/app/views/layouts/admin.rhtml +++ b/app/views/layouts/admin.rhtml @@ -5,8 +5,11 @@ <head> <meta http-equiv="content-type" content="text/html;charset=UTF-8" /> <title>FOIFA admin<%= @title ? ":" : "" %> <%=@title%></title> - <%= stylesheet_link_tag 'admin' %> - <%= stylesheet_link_tag 'scaffold' %> + <% + # Have to do explicit tag for stylesheet, to get absolute path on main server + %> + <%= tag("link", { "rel" => "Stylesheet", "type" => "text/css", "media" => "screen", "href" => main_url(stylesheet_path('admin')) }) %> + <%= tag("link", { "rel" => "Stylesheet", "type" => "text/css", "media" => "screen", "href" => main_url(stylesheet_path('scaffold')) }) %> </head> <body> |