Sha256: 2d382c27dabba456570002da25401c8e83f2ca57ff4353b861b15c06dd48753c

Contents?: true

Size: 1.78 KB

Versions: 1

Compression:

Stored size: 1.78 KB

Contents

<!DOCTYPE html>
<html>(lang="en")
  <head>
    <title>
      <%= content_for?(:title) ? yield(:title) : app_name %>
    </title>
    <%= csrf_meta_tags %>
    <!-- Le HTML5 shim, for IE6-8 support of HTML elements
    -->
    <!--[if lt IE 9]
      <%= javascript_include_tag "//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js" %>
    -->
    <%= stylesheet_link_tag "prosperity/application", :media => "all" %>
  </head>
  <body>
    <div class="navbar navbar-inverse navbar-fixed-top">
      <div class="container">
        <div class="navbar-header">
          <button class="navbar-toggle" data-target=".navbar-collapse" data-toggle="collapse" type="button">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="<%= root_path %>">
            <%= app_name %>
          </a>
        </div>
        <div class="collapse navbar-collapse">
          <ul class="nav navbar-nav">
            <%= navbar_item 'Dashboards', dashboards_path, Prosperity::DashboardsController, Prosperity::GraphsController %>
            <%= navbar_item 'Browse Metrics', metrics_path, Prosperity::MetricsController %>
          </ul>
        </div>
      </div>
    </div>
    <div class="container">
      <div class="main">
        <% flash.each do |name, msg| %>
          <% if msg.is_a?(String) %>
            <div class="alert alert-<%= name == :notice ? "success" : "error" %>">
              <a class="close" data-dismiss="alert">&#215;</a>
              <%= content_tag :div, msg, :id => "flash_#{name}" %>
            </div>
          <% end %>
        <% end %>

        <%= yield %>
      </div>
    </div>
    <%= javascript_include_tag "prosperity/application" %>
  </body>
</html>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
prosperity-0.0.6 app/views/layouts/prosperity/application.html.erb