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 @@
${_('Files')}
-
${_('File')}: ${h.files_breadcrumbs(c.repo_name,c.cur_rev,c.files_list.path)}
- %if c.files_list.is_dir():
-
-
-
- | ${_('Name')} |
- ${_('Size')} |
- ${_('Revision')} |
- ${_('Last modified')} |
- ${_('Last commiter')} |
-
-
-
- % if c.files_list.parent:
- |
- ${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")}
- |
- |
- |
- |
- |
- %endif
-
- <%def name="file_class(node)">
- %if node.is_file():
- <%return "browser-file" %>
- %else:
- <%return "browser-dir"%>
- %endif
- %def>
-
-
- %for cnt,node in enumerate(c.files_list):
-
-
- |
- ${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
-
- |
-
- %endfor
-
+
${_('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:
-
-
- ${h.pygmentize(c.files_list.content,linenos=True,anchorlinenos=True,cssclass="code-highlight")}
-
+ <%include file='files_source.html'/>
%endif
%def>
\ No newline at end of file