<%def name="file_class(node)"> %if node.is_file(): <%return "browser-file" %> %else: <%return "browser-dir"%> %endif
${h.form(h.url.current())}
${_('view')}@rev « ${h.text('at_rev',value=c.changeset.revision,size=5)} » ## ${h.submit('view',_('view'),class_="ui-btn")}
${h.end_form()}
${h.checkbox('stay_at_branch',c.changeset.branch,c.changeset.branch==c.branch)}
%if c.file.parent: %endif %for cnt,node in enumerate(c.file): %endfor
${_('Name')} ${_('Size')} ${_('Mimetype')} ${_('Last Revision')} ${_('Last modified')} ${_('Last commiter')}
${h.link_to('..',h.url('files_home',repo_name=c.repo_name,revision=c.changeset.raw_id,f_path=c.file.parent.path),class_="browser-dir ypjax-link")}
%if node.is_submodule(): ${h.link_to(node.name,node.url or '#',class_="submodule-dir ypjax-link")} %else: ${h.link_to(node.name, h.url('files_home',repo_name=c.repo_name,revision=c.changeset.raw_id,f_path=h.safe_unicode(node.path)),class_=file_class(node)+" ypjax-link")} %endif: %if node.is_file(): ${h.format_byte_size(node.size,binary=True)} %endif %if node.is_file(): ${node.mimetype} %endif %if node.is_file():
${'r%s:%s' % (node.last_changeset.revision,node.last_changeset.short_id)}
%endif
%if node.is_file(): ${h.age(node.last_changeset.date)} %endif %if node.is_file(): ${h.person(node.last_changeset.author)} %endif