<!DOCTYPE html PUBLIC "-//w3c//dtd XHTML 1.1//EN" "http://www.w3.org/tr/xhtml11/dtd/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>Typo admin: <%= controller.controller_name %></title>
  <%= stylesheet_link_tag "admin.css" %>
</head>
<body>

<div id="container">

  <div id="header">
  	<h1><%= link_to "Typo admin (#{config['blog_name']})", "/admin/" %></h1>
  </div>

  <div id="info">
    <%= current_user_notice %>
  </div>  

  <div id="navigation">
  	<ul>
  	  <li><%= link_to_section "General", :controller=>"/admin/general"%></li>
  	  <li><%= link_to_section "Articles", :controller=>"/admin/content"%></li>
  	  <li><%= link_to_section "Users", :controller=>"/admin/users"%></li>
  	</ul>
  </div>  

  <div id="flash">
    <%= render_flash %>
  </div>  

  <div id="main">
  <%= @content_for_layout %>
  </div>
</div>       

</body>
</html>

<!DOCTYPE html PUBLIC "-//w3c//dtd XHTML 1.1//EN" "http://www.w3.org/tr/xhtml11/dtd/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>Typo admin: <%= controller.controller_name %></title>
  <%= stylesheet_link_tag "admin.css" %>
</head>
<body>

<div id="container">

  <div id="header">
  	<h1><%= link_to "Typo admin (#{config['blog_name']})", "/admin/" %></h1>
  </div>

  <div id="info">
    <%= current_user_notice rescue nil %>
  </div>  

  <div id="navigation">
  	<ul>
  	  <li><%= link_to_section "General", :controller=>"/admin/general" rescue nil %></li>
  	  <li><%= link_to_section "Articles", :controller=>"/admin/content" rescue nil %></li>
  	  <li><%= link_to_section "Users", :controller=>"/admin/users" rescue nil %></li>
  	</ul>
  </div>  

  <div id="flash">
    <%= render_flash rescue nil %>
  </div>  

  <div id="main">
  <%= @content_for_layout %>
  </div>
</div>       

</body>
</html>

Add nil rescues around helper functions not available to account controller (need a better way for this though)
Add nil rescues around helper functions not available to account controller (need a better way for this though)

git-svn-id: 70ab0960c3db1cbf656efd6df54a8f3de72dc710@179 820eb932-12ee-0310-9ca8-eeb645f39767
