<%namespace name="base" file="/base/base.html"/> <%def name="file_class(node)"> %if node.is_file(): <%return "browser-file" %> %elif node.is_submodule(): <%return "submodule-dir"%> %else: <%return "browser-dir"%> %endif <%def name="file_url(node, c)"> %if node.is_submodule(): <%return node.url or '#'%> %else: <%return h.url('files_home', repo_name=c.repo_name, revision=c.changeset.raw_id, f_path=node.path)%> %endif <%def name="_file_name(iconclass, name)"> <%return h.literal('%s') % (iconclass, name)%> <%def name="file_name(node)"> <% c = "icon-folder-open" if node.is_file(): c = "icon-doc" elif node.is_submodule(): c = "icon-file-submodule" %> <%return _file_name(c, node.name)%>
${base.parent_child_navigation()}
${h.form(h.url.current())} ${h.end_form()} %if c.file.parent: %endif %for cnt,node in enumerate(c.file): %endfor
${_('Name')} ${_('Size')} ${_('Last Revision')} ${_('Last Modified')} ${_('Last Committer')}
${h.link_to(_file_name('icon-folder-open', '..'),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")}
${h.link_to(file_name(node),file_url(node,c),class_=file_class(node)+(" ypjax-link" if not node.is_submodule() else ""), target_="_blank" if node.is_submodule() else None)} %if node.is_file(): ${h.format_byte_size(node.size,binary=True)} %endif %if node.is_file(): ${h.show_id(node.last_changeset)} %endif %if node.is_file(): ${h.age(node.last_changeset.date)} %endif %if node.is_file(): ${h.person(node.last_changeset.author)} %endif