[Groonga-commit] ranguba/epub-searcher at d737873 [master] Adjust title element for each page

Back to archive index

KITAITI Makoto null+****@clear*****
Thu Dec 25 05:35:11 JST 2014


KITAITI Makoto	2014-12-25 05:35:11 +0900 (Thu, 25 Dec 2014)

  New Revision: d737873c920e332b1f70764336947e298e1eb8af
  https://github.com/ranguba/epub-searcher/commit/d737873c920e332b1f70764336947e298e1eb8af

  Message:
    Adjust title element for each page

  Modified files:
    app/views/books.haml
    app/views/layouts/layout.haml

  Modified: app/views/books.haml (+4 -1)
===================================================================
--- app/views/books.haml    2014-12-25 05:18:57 +0900 (4ef9c5c)
+++ app/views/books.haml    2014-12-25 05:35:11 +0900 (d1fef12)
@@ -1,7 +1,10 @@
+- content_for(:title) {'Registered books'}
 %div{:class => 'container'}
 
   %div{:class => 'page-header'}
-    %h1= link_to 'EPUB Searcher', url_for(:index)
+    %nav
+      = link_to 'EPUB Searcher', url_for(:index)
+    %h2= link_to 'Registered books', url_for(:books)
 
   = partial 'form_search'
 

  Modified: app/views/layouts/layout.haml (+6 -1)
===================================================================
--- app/views/layouts/layout.haml    2014-12-25 05:18:57 +0900 (ddd50a8)
+++ app/views/layouts/layout.haml    2014-12-25 05:35:11 +0900 (7abb5b5)
@@ -1,7 +1,12 @@
 !!!
 %html
   %head
-    %title EPUB Searcher
+    %title
+      - if content_for? :title
+        = yield_content(:title)
+        \- EPUB Searcher
+      - else
+        EPUB Searcher
     %meta{:name => 'viewport', :content => 'width=device-width, initial-scale=1.0'}
     %link{:href => '//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css', :rel => 'stylesheet', :media => 'screen'}
     = stylesheet_link_tag 'groonga'
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index