app/views/locomotive/pages/_page.html.haml in locomotive_cms-2.0.0.rc12 vs app/views/locomotive/pages/_page.html.haml in locomotive_cms-2.0.0
- old
+ new
@@ -15,10 +15,16 @@
- unless page.index_or_not_found?
%em
= link_to truncate(page.title, :length => 80), edit_page_url(page)
+ - if page.templatized?
+ %i.icon-cog
+
+ - if page.redirect?
+ %i.icon-share-alt
+
- unless page.default_response_type?
%span.response-type= page_response_type_to_string(page)
- unless page.translated?
%span.untranslated= t('locomotive.shared.list.untranslated')
@@ -26,10 +32,10 @@
.more
%span!= t('.updated_at')
= l page.updated_at, :format => :short
- if !page.index_or_not_found? && can?(:manage, page)
- = link_to 'x', page_url(page), :class => 'remove', :data => { :confirm => t('locomotive.messages.confirm') }, :method => :delete
+ = link_to_icon :trash, page_url(page), :class => 'remove', :data => { :confirm => t('locomotive.messages.confirm') }, :method => :delete
- if with_children
%ul{ :id => "folder-#{page._id}", :class => "page folder depth-#{(page.depth || 0) + 1}", :'data-url' => sort_page_url(page), :style => "display: #{cookies["folder-#{page._id}"] || 'block'}" }
= render children
\ No newline at end of file