Mercurial > kallithea
comparison 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 |
comparison
equal
deleted
inserted
replaced
1698:8fdabc8cce1a | 1699:623b228cf325 |
---|---|
30 </li> | 30 </li> |
31 </ul> | 31 </ul> |
32 </div> | 32 </div> |
33 <div class="table"> | 33 <div class="table"> |
34 <div id="files_data"> | 34 <div id="files_data"> |
35 %if c.files_list: | 35 <%include file='files_ypjax.html'/> |
36 <h3 class="files_location"> | |
37 ${_('Location')}: ${h.files_breadcrumbs(c.repo_name,c.changeset.raw_id,c.files_list.path)} | |
38 </h3> | |
39 %if c.files_list.is_dir(): | |
40 <%include file='files_browser.html'/> | |
41 %else: | |
42 <%include file='files_source.html'/> | |
43 %endif | |
44 %else: | |
45 <h2> | |
46 <a href="#" onClick="javascript:parent.history.back();" target="main">${_('Go back')}</a> | |
47 ${_('No files at given path')}: "${c.f_path or "/"}" | |
48 </h2> | |
49 %endif | |
50 | |
51 </div> | 36 </div> |
52 </div> | 37 </div> |
53 </div> | 38 </div> |
54 | 39 <script type="text/javascript"> |
55 </%def> | 40 var YPJAX_TITLE = "${c.repo_name} ${_('Files')} - ${c.rhodecode_name}"; |
41 var current_url = "${h.url.current()}"; | |
42 var node_list_url = '${h.url("files_home",repo_name="__REPO__",revision="__REVISION__",f_path="__FPATH__")}'; | |
43 var url_base = '${h.url("files_nodelist_home",repo_name="__REPO__",revision="__REVISION__",f_path="__FPATH__")}'; | |
44 fileBrowserListeners(current_url, node_list_url, url_base); | |
45 </script> | |
46 </%def> |