lib/gitdocs/views/file.haml in gitdocs-0.3.4 vs lib/gitdocs/views/file.haml in gitdocs-0.3.5
- old
+ new
@@ -1,18 +1,7 @@
%h1= root
-- if parent
- %a{ :href => parent.empty? ? "/#{idx}" : "/#{idx}#{parent}", :class => "parent" }
- ↪ Back to parent
-- else
- %a{ :href => "/", :class => "parent" }
- ↪ Back to selection
-
-%h2
- %span.path= request.path_info.empty? ? '/' : request.path_info
- %a{ :href => "?mode=raw" } (raw)
- %a{ :href => "?mode=edit" } (edit)
- %a{ :href => "?mode=delete", :onclick => "javascript:return confirm('Are you sure?')" } (delete)
+= partial("header", :locals => { :parent => parent, :file => true, :idx => idx })
.contents
= preserve contents