## -*- coding: utf-8 -*-
<%inherit file="base.tmpl"/>
<%namespace name="comments" file="comments_helper.tmpl"/>
<%namespace name="ui" file="crumbs.tmpl" import="bar"/>
<%block name="sourcelink"></%block>

<%block name="content">
    ${ui.bar(crumbs)}
    %if title:
    <h1>${title}</h1>
    %endif
    %if post:
    <p>
        ${post.text()}
    </p>
    %endif
    %if folders:
    <ul>
    % for folder, ftitle in folders:
        <li><a href="${folder}"><i
        class="icon-folder-open"></i>&nbsp;${ftitle}</a></li>
    % endfor
    </ul>
    %endif
    %if photo_array:
    <ul class="thumbnails">
        %for image in photo_array:
            <li><a href="${image['url']}" class="thumbnail image-reference" title="${image['title']}">
                <img src="${image['url_thumb']}" alt="${image['title']}" /></a>
        %endfor
    </ul>
    %endif
%if site_has_comments and enable_comments:
    ${comments.comment_form(None, permalink, title)}
%endif
</%block>
