KITAITI Makoto
null+****@clear*****
Mon Sep 21 02:37:06 JST 2015
KITAITI Makoto 2015-09-21 02:37:06 +0900 (Mon, 21 Sep 2015) New Revision: 69fecfce82270ffe38cf13a8e18825930fd5766e https://github.com/ranguba/epub-searcher/commit/69fecfce82270ffe38cf13a8e18825930fd5766e Message: Don't render snippet when no content the case like commit Modified files: app/views/_result.haml Modified: app/views/_result.haml (+1 -1) =================================================================== --- app/views/_result.haml 2015-09-21 01:47:47 +0900 (f5b451a) +++ app/views/_result.haml 2015-09-21 02:37:06 +0900 (a88ae1e) @@ -1,4 +1,4 @@ %li{:class => 'media'} %div{:class => 'media-body'} %h4{:class => 'media-heading'}== #{result['title']} - #{result['author']} - = partial 'snippet', :collection => result['snippet_html(main_text)'] + = partial 'snippet', :collection => result['snippet_html(main_text)'] if result['snippet_html(main_text)'] -------------- next part -------------- HTML����������������������������...Download