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