Mercurial > kallithea
diff rhodecode/templates/files/files.html @ 1699:623b228cf325 beta
cleaned up JS files in files templates.
- fixed some small issues with editing/adding git files using codemirror
- small css fixes
- separated files/dir browsing into separate template
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 19 Nov 2011 21:00:02 +0200 |
parents | c8bd0e6cc3da |
children | 5e4827a8e942 |
line wrap: on
line diff
--- a/rhodecode/templates/files/files.html Fri Nov 18 16:31:36 2011 +0200 +++ b/rhodecode/templates/files/files.html Sat Nov 19 21:00:02 2011 +0200 @@ -32,24 +32,15 @@ </div> <div class="table"> <div id="files_data"> - %if c.files_list: - <h3 class="files_location"> - ${_('Location')}: ${h.files_breadcrumbs(c.repo_name,c.changeset.raw_id,c.files_list.path)} - </h3> - %if c.files_list.is_dir(): - <%include file='files_browser.html'/> - %else: - <%include file='files_source.html'/> - %endif - %else: - <h2> - <a href="#" onClick="javascript:parent.history.back();" target="main">${_('Go back')}</a> - ${_('No files at given path')}: "${c.f_path or "/"}" - </h2> - %endif - + <%include file='files_ypjax.html'/> </div> </div> </div> - -</%def> \ No newline at end of file +<script type="text/javascript"> +var YPJAX_TITLE = "${c.repo_name} ${_('Files')} - ${c.rhodecode_name}"; +var current_url = "${h.url.current()}"; +var node_list_url = '${h.url("files_home",repo_name="__REPO__",revision="__REVISION__",f_path="__FPATH__")}'; +var url_base = '${h.url("files_nodelist_home",repo_name="__REPO__",revision="__REVISION__",f_path="__FPATH__")}'; +fileBrowserListeners(current_url, node_list_url, url_base); +</script> +</%def> \ No newline at end of file