Sha256: 672d15ee638e9eed942d51f7e85e42e2f9a4e08edd09c80937e3de34d30db5b8

Contents?: true

Size: 1.03 KB

Versions: 13

Compression:

Stored size: 1.03 KB

Contents

- if model
  - if resource.options[:sitemappable, false] 
    = orange[:sitemap, true].sitemap_links(packet, {:slug_me => orange[:sitemap, true].slug_for(model, props)})
  %form{:action => route_to(model_name, model[:id], 'save'), :method => 'post'}
    - for prop in props
      %p~ view_attribute(prop, model_name, :label => true, :value => model.attribute_get(prop[:name]))
    %input{:type => 'submit', :value => 'Save Changes'}
    = route_to(model_name, model[:id], 'publish')
  = form_link('Publish', packet.route_to(model_name, model[:id], 'publish'))
  %h3 Versions
  %ul
    %li (Current Draft)
    - for version in model.versions.all(:order => :version.desc, :limit=> 3)
      %li 
        .version_container
          %span.version_info
            %strong Version #{version.version} 
          %span.version_info  
            Last Updated: #{version.updated_at}
          %span.version_info
            %a{:href => route_to(model_name, model[:id], 'edit', "version", version.version)}Edit
- else
  %p Couldn't find the item you're looking for.

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
orange-0.2.6 lib/orange-more/pages/views/pages/edit.haml
orange-0.2.5 lib/orange-more/pages/views/pages/edit.haml
orange-0.2.4 lib/orange-more/pages/views/pages/edit.haml
orange-0.2.3 lib/orange-more/pages/views/pages/edit.haml
orange-0.1.10 lib/orange-more/pages/views/pages/edit.haml
orange-0.1.8 lib/orange-more/pages/views/pages/edit.haml
orange-0.1.7 lib/orange-more/pages/views/pages/edit.haml
orange-0.1.4 lib/orange-more/pages/views/pages/edit.haml
orange-0.1.2 lib/orange-more/pages/views/pages/edit.haml
orange-0.1.0 lib/orange-more/pages/views/pages/edit.haml
orange-0.0.15 lib/orange-more/pages/views/pages/edit.haml
orange-0.0.14 lib/orange-more/pages/views/pages/edit.haml
orange-0.0.13 lib/orange/views/pages/edit.haml