diff --git a/docs/changelog.rst b/docs/changelog.rst
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -25,6 +25,8 @@ news
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 --git a/rhodecode/templates/_data_table/_dt_elements.html b/rhodecode/templates/_data_table/_dt_elements.html
--- a/rhodecode/templates/_data_table/_dt_elements.html
+++ b/rhodecode/templates/_data_table/_dt_elements.html
@@ -40,7 +40,14 @@
%def>
-<%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:
diff --git a/rhodecode/templates/admin/repos_groups/repos_groups.html b/rhodecode/templates/admin/repos_groups/repos_groups.html
--- a/rhodecode/templates/admin/repos_groups/repos_groups.html
+++ b/rhodecode/templates/admin/repos_groups/repos_groups.html
@@ -17,5 +17,5 @@
${self.menu('admin')}
%def>
<%def name="main()">
- <%include file="/index_base.html" args="parent=self"/>
+ <%include file="/index_base.html" args="parent=self,short_repo_names=True"/>
%def>
diff --git a/rhodecode/templates/index.html b/rhodecode/templates/index.html
--- a/rhodecode/templates/index.html
+++ b/rhodecode/templates/index.html
@@ -4,5 +4,5 @@
<%def name="breadcrumbs()">%def>
<%def name="page_nav()">${self.menu('home')}%def>
<%def name="main()">
- <%include file="index_base.html" args="parent=self"/>
+ <%include file="index_base.html" args="parent=self"/>
%def>
diff --git a/rhodecode/templates/index_base.html b/rhodecode/templates/index_base.html
--- a/rhodecode/templates/index_base.html
+++ b/rhodecode/templates/index_base.html
@@ -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
|