Sha256: d5fea1001b1ef8c2b93b346fdba01813ccd1179040b367bf180731542726fdaa

Contents?: true

Size: 703 Bytes

Versions: 6

Compression:

Stored size: 703 Bytes

Contents

<!DOCTYPE html>
<html>
<head>
<title>Caboose</title>
<%= yield :css %>
<%= csrf_meta_tags %>
</head>
<body>
<div id='wrapper'>
  <div id='header'>
    <div id='top_nav'>
      <% if (@user.nil? || @user.id == Caboose::User::LOGGED_OUT_USER_ID) %>
        <%= link_to "Login", "/login?return_url=#{request.fullpath}", :id => 'caboose_login' %>
      <% else %>
        <%= link_to "Control Panel", '#', :id => 'caboose_conductor' %>
      <% end %>
    </div>
  </div>
  <div id='content_wrapper'>
    <div id='content'>

<% if (yield) %>
<%= yield %>
<% elsif (!@page.nil?) %>
<h1><%= @page.title %></h1>
<%= @page.content %>  
<% end %>

    </div>    
  </div>
</div>
<%= yield :js %>
</body>
</html>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
caboose-cms-0.1.4 lib/sample_files/layout_default.html.erb
caboose-cms-0.1.3 lib/sample_files/layout_default.html.erb
caboose-cms-0.1.2 lib/sample_files/layout_default.html.erb
caboose-cms-0.1.1 lib/sample_files/layout_default.html.erb
caboose-cms-0.1.0 lib/sample_files/layout_default.html.erb
caboose-cms-0.0.7 lib/sample_files/layout_default.html.erb