Mercurial > kallithea
changeset 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 | 5f42d751c719 |
children | b5e59e2b5cfe |
files | pylons_app/templates/files/files.html |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
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