lib/gitdocs/views/file.haml in gitdocs-0.2.0 vs lib/gitdocs/views/file.haml in gitdocs-0.3.0
- old
+ new
@@ -1,18 +1,18 @@
-%h1
- = root
+%h1= root
- if parent
%a{ :href => parent.empty? ? "/#{idx}" : "/#{idx}#{parent}", :class => "parent" }
- ↪
- = parent.empty? ? '/' : parent
+ ↪ Back to parent
- else
%a{ :href => "/", :class => "parent" }
↪ Back to selection
%h2
- = request.path_info.empty? ? '/' : request.path_info
- %a{ :href => "?mode=raw" }
- (raw)
+ %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)
.contents
= preserve contents
+