ViliusLuneckas/metro-ui-rails

View on GitHub
lib/generators/metro/layout/templates/layout.html.erb

Summary

Maintainability
Test Coverage
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <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]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
    <![endif]-->

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

    <!-- For third-generation iPad with high-resolution Retina display: -->
    <!-- Size should be 144 x 144 pixels -->
    <%%= favicon_link_tag 'images/apple-touch-icon-144x144-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png', :sizes => '144x144' %>

    <!-- For iPhone with high-resolution Retina display: -->
    <!-- Size should be 114 x 114 pixels -->
    <%%= favicon_link_tag 'images/apple-touch-icon-114x114-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png', :sizes => '114x114' %>

    <!-- For first- and second-generation iPad: -->
    <!-- Size should be 72 x 72 pixels -->
    <%%= favicon_link_tag 'images/apple-touch-icon-72x72-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png', :sizes => '72x72' %>

    <!-- For non-Retina iPhone, iPod Touch, and Android 2.1+ devices: -->
    <!-- Size should be 57 x 57 pixels -->
    <%%= favicon_link_tag 'images/apple-touch-icon-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png' %>

    <!-- For all other devices -->
    <!-- Size should be 32 x 32 pixels -->
    <%%= favicon_link_tag 'images/favicon.ico', :rel => 'shortcut icon' %>
  </head>

  <body class="metrouicss">
    <div class="page">
      <div class="nav-bar">
        <div class="nav-bar-inner padding10">
          <span class="pull-menu"></span>

          <a href="/">
            <span class="element brand">
              <span class="metro-ui-logo place-left"></span>
              <span class="name"><%= app_name %></span>
            </span>
          </a>

          <ul class="menu">
            <li><%%= link_to "Home", "/" %></li>

            <li data-role="dropdown">
              <a href="#">Menu</a>
              <ul class="dropdown-menu">
                <li><%%= link_to "Link1", "/path1" %></li>
                <li><%%= link_to "Link2", "/path2" %></li>
                <li class="divider"></li>
                <li><%%= link_to "Link3", "/path3" %></li>
              </ul>
            </li>
          </ul>
        </div>
      </div>

      <div class="page-region">
        <div class="page-region-content">
          <div class="grid">
            <div class="row">
              <%%= yield %>
            </div>
          </div>
        </div>
      </div>


      <div class="nav-bar">
          <div class="nav-bar-inner" style="padding: 10px 10px 5px;">
            <span class="element">&copy; Company 2012</span>
          </div>
        </div>

    </div>

    <!-- Javascripts
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <%%= javascript_include_tag "application" %>

  </body>
</html>