<%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-button-small")}
${h.end_form()}
${h.checkbox('stay_at_branch',c.changeset.branch,c.changeset.branch==c.branch)}
%if c.files_list.parent: %endif %for cnt,node in enumerate(c.files_list): %endfor
${_('Name')} ${_('Size')} ${_('Mimetype')} ${_('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.files_list.parent.path),class_="browser-dir")}
${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))} %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(): ${node.last_changeset.author} %endif