%def name="file_class(node)"> %if node.is_file(): <%return "browser-file" %> %else: <%return "browser-dir"%> %endif %def>
${_('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)} |
%if node.is_file(): ${h.age(node.last_changeset.date)} %endif | %if node.is_file(): ${h.person(node.last_changeset.author)} %endif |