<% if page_for_links.redirects_to_external? %>
<%= page_for_links.name %>
<% else %>
<%= link_to(page_for_links.name, '', {
:data => {
'page-id' => page_for_links.id,
:url => @url_prefix + page_for_links.urlname
},
:title => t('page_for_links.choose_page', :name => page_for_links.name),
:class => "sitemap_pagename_link #{cycle('even', 'odd')}"
}) %>
<% end %>
<% if !page_for_links.children.empty? %>