Mercurial > kallithea
diff pylons_app/templates/files/files.html @ 139:f96f4cbf89ae
fixed files template when repository is empty
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 09 May 2010 14:53:52 +0200 |
parents | 9deb6f1d5b90 |
children | 3f01d02c2cc6 |
line wrap: on
line diff
--- a/pylons_app/templates/files/files.html Sun May 09 14:53:36 2010 +0200 +++ b/pylons_app/templates/files/files.html Sun May 09 14:53:52 2010 +0200 @@ -28,11 +28,16 @@ <h2 class="no-link no-border">${_('Files')}</h2> <div id="files_data"> + %if c.files_list: <h2>${_('Location')}: ${h.files_breadcrumbs(c.repo_name,c.cur_rev,c.files_list.path)}</h2> %if c.files_list.is_dir(): <%include file='files_browser.html'/> %else: <%include file='files_source.html'/> - %endif + %endif + %else: + <h2>${_('No files')}</h2> + %endif + </div> </%def> \ No newline at end of file