Sha256: 5a28ded2ba4f9c275362791acc700b6a15e89bcf20c7e00e229cc1da1981b369

Contents?: true

Size: 1.68 KB

Versions: 2

Compression:

Stored size: 1.68 KB

Contents

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title><%= application_name %></title>

  <%%= stylesheet_link_tag    "application", :media => "all" %>

<% if bootswatch_theme? %>
  <link href="//netdna.bootstrapcdn.com/bootswatch/2.3.2/<%= theme_name %>/bootstrap.min.css" rel="stylesheet">
<% end %>
  <link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.min.css" rel="stylesheet">

  <%%= javascript_include_tag "application" %>
  <%%= csrf_meta_tags %>

  <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>

  <div class="navbar navbar-fixed-top">
    <div class="navbar-inner">
      <div class="container">
        <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </a>
        <a class="brand" href="/"><%= application_name %></a>
        <div class="nav-collapse">
          <ul class="nav">
<% if options[:navbar] %>
            <li><%%= link_to "Home", "/" %></li>
<% app_tables.each do |table_name| -%>
            <li><%%= link_to "<%= table_name.humanize.titleize %>", "/<%= table_name %>" %></li>
<% end -%>
            <li><a href="#about">About</a></li>
<% end -%>
          </ul>
        </div>
      </div>
    </div>
  </div>

  <div class="container">

    <%% if flash[:notice] %>
    <div class="alert alert-success">
      <button type="button" class="close" data-dismiss="alert">&times;</button>
      <%%= notice %>
    </div>
    <%% end %>

    <%%= yield %>

    <hr>

    <footer>
      <p>&copy; My Company 2013</p>
    </footer>

  </div>

</body>
</html>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
starter_generators-0.7.1 lib/generators/starter/style/templates/layout.html.erb
starter_generators-0.7.0 lib/generators/starter/style/templates/layout.html.erb