diff --git a/pylons_app/templates/files.html b/pylons_app/templates/files/files.html copy from pylons_app/templates/files.html copy to pylons_app/templates/files/files.html --- a/pylons_app/templates/files.html +++ b/pylons_app/templates/files/files.html @@ -1,4 +1,4 @@ -<%inherit file="base/base.html"/> +<%inherit file="/base/base.html"/> <%def name="title()"> ${_('Repository managment')} @@ -28,93 +28,11 @@
-

${_('File')}: ${h.files_breadcrumbs(c.repo_name,c.cur_rev,c.files_list.path)}

- %if c.files_list.is_dir(): - - - - - - - - - - - - % if c.files_list.parent: - - - - - - %endif - - <%def name="file_class(node)"> - %if node.is_file(): - <%return "browser-file" %> - %else: - <%return "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),class_="browser-dir")} -
- ${h.link_to(node.name,h.url('files_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=node.path),class_=file_class(node))} - - %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 - -
+

${_('Location')}: ${h.files_breadcrumbs(c.repo_name,c.cur_rev,c.files_list.path)}

+ %if c.files_list.is_dir(): + <%include file='files_browser.html'/> %else: - - - - - - - -
r70:17ecc1c97401374 loc12.5 KB - history / - annotate / - raw / -
- - - - - -
-
-
- ${h.pygmentize(c.files_list.content,linenos=True,anchorlinenos=True,cssclass="code-highlight")} -
+ <%include file='files_source.html'/> %endif
\ No newline at end of file