lib/servel/templates/index.haml in servel-0.2.0 vs lib/servel/templates/index.haml in servel-0.3.0
- old
+ new
@@ -1,18 +1,19 @@
!!!
%html
%head
%meta{charset: 'utf-8'}
- %title Directory Listing of #{url_path}
+ %title Listing of #{url_path}
+ %meta{name: 'viewport', content: 'width=device-width, height=device-height, user-scalable=no'}
:css
#{include('normalize.css')}
#{include('common.css')}
#{include('index.css')}
#{include('listing.css')}
#{include('gallery.css')}
:javascript
#{include('gallery.js')}
%body
- - if show_gallery
+ - if files.any? { |f| f.decorate.media? }
#gallery!= partial('gallery')
- #listing!= partial('listing', { url_path: url_path, fs_path: fs_path, directories: directories, files: files })
+ #listing!= partial('listing', { url_path: url_path, directories: directories, files: files })
\ No newline at end of file