app/views/pages_cms/pages/show.html.haml in pages_cms-2.1.1 vs app/views/pages_cms/pages/show.html.haml in pages_cms-2.2.1
- old
+ new
@@ -1,8 +1,12 @@
- provide(:title, @page.title)
- provide(:meta_tags, @page.meta_tags)
- provide(:meta_description, @page.meta_description)
+- if current_user_is_admin?
+ %div.float-bottom
+ = link_to 'Edit this page', edit_admin_page_path(@page)
+
- if @sliders && @sliders.count == 1
%div.container-contain.main-background
= image_tag @sliders.first.image.file.url if @sliders.first.image
%div.header-text
%h1
\ No newline at end of file