app/views/mcms_pages/admin/layouts/index.html.erb in mcms_pages-0.0.1 vs app/views/mcms_pages/admin/layouts/index.html.erb in mcms_pages-0.0.2
- old
+ new
@@ -2,11 +2,11 @@
@File Name : admin/layouts/index.html.erb
@Company Name : Mindfire Solutions Private Limited
@Creator Name : Vikram Kumar Mishra
@Date Created : 2012-06-15
- @Date Modified :
+ @Date Modified :
@Last Modification Details :
@Purpose : To display all the layouts and respective image and let the user choose the specific layout.
-->
@@ -28,27 +28,30 @@
</div>
<div class="layout-image">
<%= image_tag("layouts/#{layout.name.tr(' ', '-')}.png", :size => "400x400", :alt => "#{layout.name}", :title => "click to view large") %>
-
+
</div>
<div class="layout-link">
<!-- if parent_id is not 0 then send parent_id through url -->
<% if not @page_parent_id == 0 %>
-
+
<%= link_to("Use This Layout", new_admin_page_path(:layout_id => "#{layout.id}", :parent_id => "#{@page_parent_id}")) %>
<% else %>
-
+
<%= link_to("Use This Layout", new_admin_page_path(:layout_id => "#{layout.id}")) %>
-
+
<% end %>
</div>
</div>
<% end %>
-</div>
\ No newline at end of file
+</div>
+
+<%= render :partial => "mcms_pages/layouts/head" %>
+