Sha256: 8e106936486a30d6516f250619c854e5bc565ddd7bc437acd7d649888a51af98

Contents?: true

Size: 1.41 KB

Versions: 5

Compression:

Stored size: 1.41 KB

Contents

!!!
%html{:lang => "en"}
  %head
    %meta{:charset => "utf-8"}
    %title 
    %meta{:content => "width=device-width, initial-scale=1.0", :name => "viewport"}
    %meta{:content => "", :name => "description"}
    %meta{:content => "", :name => "author"}
    = stylesheet_link_tag    "protected/application"

  %body{ :class => "#{Rails.env} #{params[:controller]} #{params[:action]}" }
    .navbar.navbar-fixed-top
      .navbar-inner
        .container-fluid
          %a.btn.btn-navbar{"data-target" => ".nav-collapse", "data-toggle" => "collapse"}
            %span.icon-bar
            %span.icon-bar
            %span.icon-bar
          %a.brand{:href => "#"} Project name
          .nav-collapse
            - if current_user
              %ul.nav
                %li= link_to "Admin", admin_url
                %li= link_to "Users", ['admin','users']
                %li= link_to "Live Site", root_url
              %ul.nav.right
                %li= link_to "Account Settings", ['edit','admin',current_user]
                %li= link_to 'Sign Out', destroy_user_session_url

    .container-fluid
      .row-fluid
        - flash.each do |name, msg|
          %div{:class => "alert alert-#{name == :notice ? "success" : "error"}"}
            %a.close{"data-dismiss" => "alert"} ×
            = content_tag :div, msg, :id => "flash_#{name}" if msg.is_a?(String)
        = yield

    = javascript_include_tag "protected/application"

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
protected-1.0.4 app/views/layouts/protected/application.html.haml
protected-1.0.3 app/views/layouts/protected/application.html.haml
protected-1.0.2 app/views/layouts/protected/application.html.haml
protected-1.0.1 app/views/layouts/protected/application.html.haml
protected-1.0.0 app/views/layouts/protected/application.html.haml