Mercurial > kallithea
diff rhodecode/templates/files/files.html @ 3582:1f334a68d057 beta
improved title consistency
- changed - into dots to save space
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 24 Mar 2013 22:01:31 +0100 |
parents | 7967d00e4692 |
children | eacd33e0c5b3 |
line wrap: on
line diff
--- a/rhodecode/templates/files/files.html Sun Mar 24 20:46:30 2013 +0100 +++ b/rhodecode/templates/files/files.html Sun Mar 24 22:01:31 2013 +0100 @@ -1,13 +1,17 @@ <%inherit file="/base/base.html"/> -<%def name="title()"> - ${_('%s files') % c.repo_name} - ${c.rhodecode_name} +<%def name="title(*args)"> + ${_('%s Files') % c.repo_name} + %if hasattr(c,'file'): + · ${c.file.path or '\\'} + %endif + · ${c.rhodecode_name} </%def> <%def name="breadcrumbs_links()"> ${_('Files')} %if c.file: - @ r${c.changeset.revision}:${h.short_id(c.changeset.raw_id)} + @ ${h.show_id(c.changeset)} %endif </%def> @@ -65,10 +69,11 @@ } var parts2 = parts[1].split('/'); - var rev = parts2.shift(); // pop the first element which is the revision - var f_path = parts2.join('/'); + var rev = parts2.shift(); // pop the first element which is the revision + var f_path = parts2.join('/'); - var title = "${_('%s files') % c.repo_name}" + " - " + f_path; + //page title make this consistent with title() mako function on top + var title = "${_('%s Files') % c.repo_name}" + " · " + (f_path || '\\') + " · " + "${c.rhodecode_name}"; var _node_list_url = node_list_url.replace('__REV__',rev).replace('__FPATH__', f_path); var _url_base = url_base.replace('__REV__',rev);