Mercurial > kallithea
changeset 3999:e1ecc8622884
group index: quick search should not search the common part of repo names
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Wed, 12 Jun 2013 21:47:17 +0200 |
parents | 6133e598f4b4 |
children | f60edcc45cfa |
files | rhodecode/templates/admin/repos_groups/repos_groups.html rhodecode/templates/index_base.html |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/templates/admin/repos_groups/repos_groups.html Thu Jun 13 21:20:33 2013 +0200 +++ b/rhodecode/templates/admin/repos_groups/repos_groups.html Wed Jun 12 21:47:17 2013 +0200 @@ -19,5 +19,5 @@ </%def> <%def name="main()"> - <%include file="/index_base.html" args="parent=self,short_repo_names=True"/> + <%include file="/index_base.html" args="parent=self,group_name=c.group.group_name"/> </%def>
--- a/rhodecode/templates/index_base.html Thu Jun 13 21:20:33 2013 +0200 +++ b/rhodecode/templates/index_base.html Wed Jun 12 21:47:17 2013 +0200 @@ -1,4 +1,4 @@ -<%page args="parent" /> +<%page args="parent,group_name=''" /> <div class="box"> <!-- box / title --> <div class="title"> @@ -104,7 +104,7 @@ if (req) { req = req.toLowerCase(); for (i = 0; i<data.length; i++) { - var pos = data[i].raw_name.toLowerCase().indexOf(req) + var pos = data[i].raw_name.toLowerCase().indexOf(req, ${len(group_name)}) if (pos != -1) { filtered.push(data[i]); }