<!DOCTYPE HTML>
<html>
  <head>
    <title>Simutrans collaborative -- BETA</title>
    <%= stylesheet_link_tag "style" %> 
  </head>
  <body>
    <div id="header">
      <h1>Simutrans Collaborative</h1>
      <ol id="menu">
        <li><%= link_to "Home", root_url %></li>
        <li><%= link_to "Games", collaborative_games_path %></li>
        <li><a href="http://simutrans.com">Simutrans</a></li>
      </ol>
    </div>
    <div id="content">
      <div id="userbox">
         <% if current_user %>
          Welcome <%= current_user.name %>, 
          <%= link_to "Logout", logout_path %>
        <% else %>
          <%= link_to "Register", new_user_path %> |
          <%= link_to "Login", login_path %>
        <% end %>
      </div>
      <% if flash[:notice] %>
        <p class="notice"><%= flash[:notice] %></p>
      <% end %>
      <% if flash[:error] %>
        <p class="error"><%= flash[:error] %></p>
      <% end %> 
      <%= yield %>
    </div>
  </body>
</html>

<!DOCTYPE HTML>
<html>
  <head>
    <title>Simutrans collaborative -- BETA</title>
    <%= stylesheet_link_tag "style" %> 
  </head>
  <body>
    <div id="header">
      <h1>Simutrans Collaborative</h1>
      <ol id="menu">
        <li><%= link_to "Home", root_url %></li>
        <li><%= link_to "Games", collaborative_games_path %></li>
        <% if current_user && (current_user.has_role? :admin) %>
          <li><%= link_to "Users", admin_user_index_path %></li>
        <% end %>
        <li><a href="http://simutrans.com">Simutrans</a></li>
      </ol>
    </div>
    <div id="content">
      <div id="userbox">
        <% if current_user %>
          Welcome <%= current_user.name %>, 
          <%= link_to "Logout", logout_path %>
        <% else %>
          <%= link_to "Register", new_user_path %> |
          <%= link_to "Login", login_path %>
        <% end %>
      </div>
      <% if flash[:notice] %>
        <p class="notice"><%= flash[:notice] %></p>
      <% end %>
      <% if flash[:error] %>
        <p class="error"><%= flash[:error] %></p>
      <% end %> 
      <%= yield %>
    </div>
  </body>
</html>

Add user admin link to menu
Add user admin link to menu
