lib/gitdocs/views/dir.haml in gitdocs-0.5.0 vs lib/gitdocs/views/dir.haml in gitdocs-0.6.0
- old
+ new
@@ -1,11 +1,11 @@
- @title = root
-= haml(:_header, locals: { file: false, idx: idx })
+= haml(:_header, locals: { file: false })
- if contents && contents.any?
- %table#fileListing.condensed-table.zebra-striped
+ %table.condensed-table.zebra-striped#fileListing
%thead
%tr
%th File
%th Author
%th Last Modified
@@ -32,10 +32,10 @@
%input.uploader{ type: 'file', value: 'Select a file', name: 'file', size: 12 }
%input.btn.secondary{ type: 'submit', value: 'Upload file' }
.span8
%form.add{ method: 'POST' }
%p Add new file or directory
- %input{ type: 'text', name: 'filename', placeholder: 'somefile.md or somedir' }
+ %input{ type: 'text', name: 'filename', placeholder: 'somefile.md or somedir' }
%input.btn.secondary{ type: 'submit', name: 'new_file', value: 'New file' }
%input.btn.secondary{ type: 'submit', name: 'new_directory', value: 'New directory' }
- if rendered_readme
.contents