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