Sha256: a5b5d8b2c9b33168d18c3050e0d312168c662ba5e54cc7f5ac912833ff3ee896

Contents?: true

Size: 1.21 KB

Versions: 6

Compression:

Stored size: 1.21 KB

Contents

<!DOCTYPE html>
<html lang="it">
<head>
  <%= csrf_meta_tags %>
  <title><%= ( @title ? "#{@title} - " : "" ) + "#{app_name} Admin" %></title>

  <%= stylesheet_link_tag 'admin/admin' %>
  <%= yield :stylesheets %>
</head>

<body>
  <%= render :partial => 'admin/shared/nav' %>

  <%= navbar :fixed => :top do %>
    <%= brand "#{app_name} Admin", admin_root_path %>
    <%= yield :menu %>
  <% end %>

  <%= yield :crumbs %>
  
  <%= container :fluid, :class => "main" do %>
    <%= row do %>
      
      <%= span(2, :id => "left-aside") do %>
          <%= yield :nav %>
      <% end %>
      
      <%= span(content_for?(:aside) ? 6 : 10, :id => "center") do %>
          <%= yield %>
      <% end %>
      
      <% if content_for?(:aside) %>
        <%= span(4, :id => "left-aside") do %>
            <%= yield :nav %>
        <% end %>
      <% end %>
    
    <% end %>
  <% end %>

  <%= javascript_include_tag 'admin/admin' %>
  <%= yield :javascripts %>

  <% [:notice, :error, :alert].each do |sym| %>

      <% if flash[sym].present? %>
        <%= javascript_tag do %>
        $.notify.notice('<%= j "#{flash[sym]}" %>');
        <% end %>

        <% flash.discard(sym) %>
      <% end %>
  
  <% end %>
  
</body>
</html>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fullstack-admin-0.1.17 app/views/layouts/admin.html.erb
fullstack-admin-0.1.16 app/views/layouts/admin.html.erb
fullstack-admin-0.1.15 app/views/layouts/admin.html.erb
fullstack-admin-0.1.14 app/views/layouts/admin.html.erb
fullstack-admin-0.1.12 app/views/layouts/admin.html.erb
fullstack-admin-0.1.11 app/views/layouts/admin.html.erb