<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%~set secondarynav = "bookmark_nav.html"%>
<html>
<head>
  <title><%site_title%>: Bookmarks: <%escape_html my_folder_username%><%if my_folder_name%>: <%my_folder_name%><%else%>'s Bookmarks<%endif%></title>
<%include include_common_head.html%>
</head>
<body id="bookmark_folder_view">
<%include include_accessibility.html%>
  <div id="wrapper">
<%include include_header.html%>
<%include include_contentheader.html%>
    <div id="ocwrapper" class="clear">
      <div id="icwrapper" class="clear">
<%include include_leftsidebar.html%>
        <div id="contentwrapper" class="shadowleft">
<%include include_contentwrapper_top.html%>
          <div class="shadowtop"><div class="shadowtopleft"></div><div class="shadowtopright"></div></div>
          <div class="shadowright">
            <div id="content">
<%include include_content_top.html%>

<div class="crumb"><%Links::Utils::format_title($main_title_loop, separator => $crumb_separator, no_escape_separator => $no_escape_crumb_separator, include_home => 1, link_type => 2)%></div>
<h2><%escape_html my_folder_username%><%if my_folder_name%>: <%my_folder_name%><%else%>'s Bookmarks<%endif%></h2>

<p>
<%~if my_folder_name%>
  There <%if link_count != 1%>are<%else%>is<%endif%> <%link_count%> link<%if link_count != 1%>s<%endif%> in this folder.
<%~else%>
  <%if my_folder_username eq $user.Username%>You have<%else%><%escape_html my_folder_username%> has<%endif%> <%folder_count%> folder<%if folder_count != 1%>s<%endif%> with <%link_count%> link<%if link_count != 1%>s<%endif%>.
<%~endif%>
</p>

<%if paging.num_hits%><div class="paging"><%Links::Utils::paging()%></div><%endif%>

<%if Folders.length~%>
<ul class="folders">
<%~loop Folders%>
  <li>
    <a href="<%config.db_cgi_url%>/bookmark.cgi?action=users_links;my_folder_id=<%my_folder_id%>"><%my_folder_name%></a> (<%num_links%>)
    <%if my_folder_description%><p class="description"><%my_folder_description%></p><%endif%>
  </li>
<%~endloop%>
</ul>
<%~endif%>

<%if Bookmarks.length~%>
<%~loop Bookmarks%>
<p class="category"><%Links::Utils::format_title($title_loop, separator => $category_separator, no_escape_separator => $no_escape_category_separator, include_home => 0, link_type => 1)%></p>
<%include bookmark_link.html%>
<%~endloop%>
<%~endif%>

<%if paging.num_hits%><div class="paging"><%Links::Utils::paging(button_id => 'paging_button2')%></div><%endif%>

<%include include_content_bottom.html%>
            </div>
          </div>
          <div class="shadowbottom"><div class="shadowbottomleft"></div><div class="shadowbottomright"></div></div>
<%include include_contentwrapper_bottom.html%>
        </div>
<%include include_rightsidebar.html%>
      </div>
    </div>
<%include include_contentfooter.html%>
<%include include_footer.html%>
  </div>
</body>
</html>
