Sha256: fb9a23ef73bde01a9555b7ad50e212f0c42e21d61a2cc77143673a5e03a0e4b7

Contents?: true

Size: 1.48 KB

Versions: 2

Compression:

Stored size: 1.48 KB

Contents

%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)

%form{ :class => "edit", :action => "/#{idx}#{request.path_info}/save", :method => "post", :style => "display:none;" }
  #editor
  %textarea{ :id => 'data', :name => "data" }= preserve contents
  %input{ :type => 'submit', :value => "Save" }
  %a{ :href => "/#{idx}#{request.path_info}" } Cancel
  %input{ :type => 'hidden', :class => 'filename', :value => request.path_info }

<script src="/js/ace/ace.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/ace/theme-tomorrow_night.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/ace/mode-css.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/ace/mode-html.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/ace/mode-markdown.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/ace/mode-javascript.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/ace/mode-ruby.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/edit.js" type="text/javascript" charset="utf-8"></script>


Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gitdocs-0.3.1 lib/gitdocs/views/edit.haml
gitdocs-0.3.0 lib/gitdocs/views/edit.haml