- 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'} %h3 Versions - for version in model.versions %li %div.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.