KITAITI Makoto
null+****@clear*****
Thu Dec 25 08:12:59 JST 2014
KITAITI Makoto 2014-12-25 08:12:59 +0900 (Thu, 25 Dec 2014) New Revision: b37f9e4a558f96ca6d868a83e85906df8e67c9d7 https://github.com/ranguba/epub-searcher/commit/b37f9e4a558f96ca6d868a83e85906df8e67c9d7 Message: Add navigation bar Modified files: app/views/books.haml app/views/layouts/layout.haml Modified: app/views/books.haml (+0 -2) =================================================================== --- app/views/books.haml 2014-12-25 07:42:03 +0900 (d1fef12) +++ app/views/books.haml 2014-12-25 08:12:59 +0900 (d72fdd5) @@ -2,8 +2,6 @@ %div{:class => 'container'} %div{:class => 'page-header'} - %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 (+7 -0) =================================================================== --- app/views/layouts/layout.haml 2014-12-25 07:42:03 +0900 (7abb5b5) +++ app/views/layouts/layout.haml 2014-12-25 08:12:59 +0900 (f56d141) @@ -11,6 +11,13 @@ %link{:href => '//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css', :rel => 'stylesheet', :media => 'screen'} = stylesheet_link_tag 'groonga' %body + %header{:class => 'navbar navbar-default'} + %nav{:class => 'container'} + %ul{:class => 'nav navbar-nav'} + %li{:class => 'nav'} + = link_to 'EPUB Searcher', url_for(:index), :class => 'navbar-brand' + %li{:class => 'nav'} + = link_to 'Books', url_for(:books), :class => '', :title => 'Registered books' = yield %script{:src => '//code.jquery.com/jquery-2.1.3.min.js'} %script{:src => '//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js'} -------------- next part -------------- HTML����������������������������... 下载