diff --git a/pylons_app/templates/files.html b/pylons_app/templates/files.html new file mode 100644 --- /dev/null +++ b/pylons_app/templates/files.html @@ -0,0 +1,95 @@ +<%inherit file="base/base.html"/> + +<%def name="title()"> + ${_('Repository managment')} + +<%def name="breadcrumbs()"> + ${h.link_to(u'Home',h.url('/'))} + / + ${h.link_to(c.repo_name,h.url('files_home',repo_name=c.repo_name))} + / + ${_('files')} + +<%def name="page_nav()"> +
+ +
+ + ${self.menu('files')} + +<%def name="css()"> + + + +<%def name="main()"> + + +
+

${_('File')}: ${c.repo_name}/${c.f_path}

+ %if c.files_list.is_dir(): + + + + + + + + + + + + % if c.files_list.parent: + + %endif + + <%def name="file_class(node)"> + %if node.is_file(): + browser-file + %else: + browser-dir + %endif + + + + %for cnt,node in enumerate(c.files_list): + + + + + + + + + %endfor +
${_('Name')}${_('Size')}${_('Revision')}${_('Last modified')}${_('Last commiter')}
+ ${h.link_to('..',h.url('files_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.files_list.parent))} +
+ ${h.link_to(node.name,h.url('files_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=node.path),class_='file or dir')} + + %if node.is_file(): + ${h.filesizeformat(node.size)} + %endif + + %if node.is_file(): + ${node.last_changeset.revision} + %endif + + %if node.is_file(): + ${node.last_changeset.date} + %endif + + %if node.is_file(): + ${node.last_changeset.author} + %endif + +
+ %else: +
+ ${h.pygmentize(c.files_list.content,linenos=True,anchorlinenos=True,cssclass="code-highlight")} +
+ %endif +
+ \ No newline at end of file