<% if NextPage || PreviousPage %>
<% if PreviousPage %> <% end_if %> <% if NextPage %> <% end_if %>
<% end_if %>