# HG changeset patch # User Marcin Kuzminski # Date 1331988205 -7200 # Node ID e1a54d600c89cabc71a858fd27f2dffd05bd6a20 # Parent 9f5582151d53243195d1940b114031d631646a4c #402 removed group prefix from repository name when listing repositories inside a group diff -r 9f5582151d53 -r e1a54d600c89 docs/changelog.rst --- a/docs/changelog.rst Fri Mar 16 23:58:05 2012 +0200 +++ b/docs/changelog.rst Sat Mar 17 14:43:25 2012 +0200 @@ -25,6 +25,8 @@ inside a repository group - added alternative HTTP 403 response when client failed to authenticate. Helps solving issues with Mercurial and LDAP +- #402 removed group prefix from repository name when listing repositories + inside a group fixes +++++ diff -r 9f5582151d53 -r e1a54d600c89 rhodecode/templates/_data_table/_dt_elements.html --- a/rhodecode/templates/_data_table/_dt_elements.html Fri Mar 16 23:58:05 2012 +0200 +++ b/rhodecode/templates/_data_table/_dt_elements.html Sat Mar 17 14:43:25 2012 +0200 @@ -40,7 +40,14 @@ -<%def name="repo_name(name,rtype,private,fork_of)"> +<%def name="repo_name(name,rtype,private,fork_of,short_name=False)"> + <% + def get_name(name,short_name=short_name): + if short_name: + return name.split('/')[-1] + else: + return name + %>
##TYPE OF REPO %if h.is_hg(rtype): @@ -57,7 +64,7 @@ %endif ##NAME - ${h.link_to(name,h.url('summary_home',repo_name=name),class_="repo_name")} + ${h.link_to(get_name(name),h.url('summary_home',repo_name=name),class_="repo_name")} %if fork_of: ${_('fork')} diff -r 9f5582151d53 -r e1a54d600c89 rhodecode/templates/admin/repos_groups/repos_groups.html --- a/rhodecode/templates/admin/repos_groups/repos_groups.html Fri Mar 16 23:58:05 2012 +0200 +++ b/rhodecode/templates/admin/repos_groups/repos_groups.html Sat Mar 17 14:43:25 2012 +0200 @@ -17,5 +17,5 @@ ${self.menu('admin')} <%def name="main()"> - <%include file="/index_base.html" args="parent=self"/> + <%include file="/index_base.html" args="parent=self,short_repo_names=True"/> diff -r 9f5582151d53 -r e1a54d600c89 rhodecode/templates/index.html --- a/rhodecode/templates/index.html Fri Mar 16 23:58:05 2012 +0200 +++ b/rhodecode/templates/index.html Sat Mar 17 14:43:25 2012 +0200 @@ -4,5 +4,5 @@ <%def name="breadcrumbs()"> <%def name="page_nav()">${self.menu('home')} <%def name="main()"> - <%include file="index_base.html" args="parent=self"/> + <%include file="index_base.html" args="parent=self"/> diff -r 9f5582151d53 -r e1a54d600c89 rhodecode/templates/index_base.html --- a/rhodecode/templates/index_base.html Fri Mar 16 23:58:05 2012 +0200 +++ b/rhodecode/templates/index_base.html Sat Mar 17 14:43:25 2012 +0200 @@ -81,7 +81,7 @@ ##REPO NAME AND ICONS - ${dt.repo_name(repo['name'],repo['dbrepo']['repo_type'],repo['dbrepo']['private'],repo['dbrepo_fork'].get('repo_name'))} + ${dt.repo_name(repo['name'],repo['dbrepo']['repo_type'],repo['dbrepo']['private'],repo['dbrepo_fork'].get('repo_name'),pageargs.get('short_repo_names'))} ##DESCRIPTION