Sha256: 449aaef2ece90474597e18096358cd39c9b331bb9ddedddd503223545ba97cbf

Contents?: true

Size: 1.88 KB

Versions: 3

Compression:

Stored size: 1.88 KB

Contents

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
    <title>
      <% if CmsSite.count == 0 %>
        LucyCMS
      <% else %>
        <%= @cms_site.label %>
      <% end %>
    </title>
    <%= csrf_meta_tag %>
    <%= stylesheet_link_tag :cms, :cache => ('_cms' if LucyCms.config.enable_caching) %>
    <%= javascript_include_tag :cms, :cache => ('_cms' if LucyCms.config.enable_caching) %>
    <%= yield :head %>
    <%= cms_hook :html_head %>
  </head>
  <body class='c_<%= params[:controller].idify %> a_<%= params[:action].idify %>'>
    <div class='body_wrapper'>
      <div class='left_column'>
        <div class='left_column_content'>
          <%= active_link_to 'Setup', edit_cms_admin_site_path %>
          <%= active_link_to 'Users', cms_admin_users_path %>
          <%= active_link_to 'Layouts', cms_admin_layouts_path %>
          <%= active_link_to 'Pages', cms_admin_pages_path %>
          <%= active_link_to 'Snippets', cms_admin_snippets_path %>
          <%= active_link_to 'Uploads', cms_admin_upload_dirs_path %>
          <%= cms_hook :navigation %>
        </div>
      </div>
      <div class='right_column'>
        <div class='right_column_content'>
          <% unless @cms_current_user.nil? %>
            <div id='logout' class='box'>
              <label>Logged in as: <%=@cms_current_user.login%></label>
              <div style="float:right;"><%= button_to 'Logout', cms_admin_session_path, :method => 'delete', :class => 'big button' %></div>
            </div>
          <% end %>
          <%= yield :right_column %>
        </div>
      </div>
      <div class='center_column'>
        <% flash.each do |type, message| %>
          <div class='flash <%= type %>'><%= message %></div>
        <% end %>
        <div class='center_column_content'>
          <%= yield %>
        </div>
      </div>
    </div>
  </body>
</html>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lucy_cms-0.0.6 app/views/layouts/cms_admin.html.erb
lucy_cms-0.0.5 app/views/layouts/cms_admin.html.erb
lucy_cms-0.0.4 app/views/layouts/cms_admin.html.erb