Created
February 11, 2013 17:21
-
-
Save mrebola/4755894 to your computer and use it in GitHub Desktop.
old sub menu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="clear"></div> | |
<div class="module"> | |
<ul> | |
<% | |
if @page.children.present? | |
parent_page = @page | |
else | |
parent_page = @page.parent | |
end | |
unless | |
@page.slug == "customers" || | |
@page.slug == "partners" || | |
@page.slug == "contact-us" || | |
@page.slug == "home" || | |
@page.slug == "salesforce-development" || | |
@page.slug =="salesforce-consulting" || | |
@page.slug =="ruby-on-rails-development" || | |
@page.slug =="thank-you" || | |
@page.slug =="clientes" | |
%> | |
<% Refinery::Page.where(parent_id: parent_page.id).each do |menu_item| %> | |
<% bad_children = ["Page Not Found", "Thank You", "Privacy Policy"] %> | |
<% unless bad_children.include?(menu_item.title) %> | |
<li> <%= link_to menu_item.title, menu_item %> </li> | |
<% end %> | |
<% end %> | |
<% end %> | |
</ul> | |
<%=link_to image_tag('left_container/force.png'), "/contact-us" %> | |
<%=link_to image_tag('left_container/rails.png'), "/contact-us" %> | |
<%=link_to image_tag('left_container/call.png'), "/contact-us" %> | |
</div> | |
<div class="clear"></div> | |
<br> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment