diff app/views/layouts/application.html.erb @ 398:851432f21603

Nope, failing at redesigning.
author nanaya <me@myconan.net>
date Sun, 06 Sep 2015 03:52:52 +0900
parents 26f8c634052c
children f3cdc83b87b4
line wrap: on
line diff
--- a/app/views/layouts/application.html.erb	Sat Jun 27 14:46:01 2015 +0900
+++ b/app/views/layouts/application.html.erb	Sun Sep 06 03:52:52 2015 +0900
@@ -3,28 +3,44 @@
   <head>
     <meta http-equiv="Content-type" content="text/html;charset=UTF-8">
     <title><%= html_title %></title>
-    <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <%= stylesheet_link_tag    "application", :media => "all" %>
+    <meta name="viewport" content="width=device-width, initial-scale=1">
+    <%= stylesheet_link_tag "application", :media => "all" %>
   </head>
   <body>
-    <%= yield(:before_page_header) %>
-    <header class="header">
-      <h1>
-        <%= link_to "Zeropaste", root_path %> / <%= content_for :title %>
-      </h1>
+    <nav class="navbar navbar-default navbar-static-top">
+      <div class="container">
+        <div class="navbar-header">
+          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-menu">
+            <span class="sr-only">Toggle navigation</span>
+            <span class="icon-bar"></span>
+            <span class="icon-bar"></span>
+            <span class="icon-bar"></span>
+          </button>
+          <%= link_to "Zeropaste", root_path, :class => "navbar-brand" %>
+        </div>
 
-      <p>
-       <a href="https://bitbucket.org/nanaya1/zeropaste">Source</a>.
-       <%= link_to 'Donate', 'https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=me%40myconan%2enet&lc=ID&item_name=Zeropaste%20development&currency_code=USD&bn=PP%2dDonationsBF%3abtn_subscribe_LG%2egif%3aNonHosted' %>.
-      </p>
-    </header>
+        <div class="collapse navbar-collapse" id="navbar-menu">
+          <ul class="nav navbar-nav navbar-right">
+            <li>
+              <a href="https://bitbucket.org/nanaya1/zeropaste"><%= t(".source") %></a>
+            </li>
+            <li>
+              <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=me%40myconan%2enet&lc=ID&item_name=Zeropaste%20development&currency_code=USD&bn=PP%2dDonationsBF%3abtn_subscribe_LG%2egif%3aNonHosted"><%= t(".donate") %></a>
+            </li>
+         </ul>
+         </div>
+    </nav>
 
-    <%= render "layouts/alerts" %>
+    <div class="container">
+      <div class="row"><div class="col-xs-12">
+        <h1 class="h2 zp-header page-header"><%= content_for :title %></h1>
+      </div></div>
 
-    <main class="main">
+      <%= render "layouts/alerts" %>
+
       <%= yield %>
-    </main>
 
+    </div>
     <%= javascript_include_tag "application" %>
   </body>
 </html>