<%# Mods start here%> <%# change the helper methods to reflect MVC%>
<% @site.columns.each do |column| %> <% if column.id == 3 %>
<%# start div for center table %> <% end %>
<% @site.mods.each do |mod| %> <% if column.id == mod.column_id %> <% if mod.category.name == 'Top Navigation' %> <%= render :partial => "layouts/navigation_1" -%>
<% for site in @site.ancestors.reverse %> <%= link_to h(site.pagename), site -%> > <% end %> <%= h(@site.pagename) -%>

<%= flash[:notice] -%>

<%=h page_title -%>

<% if mobile_device? %> <%= link_to "Full Site", sites_path(:mobile => 0), :rel => :external %> <% else %> <%= link_to "Mobile Site", sites_path(:mobile => 1), :rel => :external %> <% end %>
<% elsif mod.category.name == 'User Login' %>

Login

<%= render :partial => "users/user_login" -%>
<% elsif mod.category.name == 'Sign up' %>

<%= mod.modname.html_safe -%>

<%= render :partial => "contacts/contactform" -%>
<% elsif mod.category.name == 'my details' %>

<%= mod.modname.html_safe -%>

<%= render :partial => "contacts/contactform" -%>
<% elsif mod.category.name == 'Support' %>

<%= mod.modname.html_safe -%>

<%= render :partial => "tickets/ticketForm" -%>
<% elsif mod.category.name == 'footer' %> <% else %> <% unless mod.modname.empty? %>

<%= mod.modname.html_safe -%>

<% end %><%= mod.modtext.html_safe -%> <% end %> <% end %> <% end %>
<% if column.id == 5 %> <%# finish off div for center table %>
<% end %> <% end %>
<% yield %>