##// END OF EJS Templates
#402 removed group prefix from repository name when listing repositories inside a group
marcink -
r2133:e1a54d60 beta
parent child Browse files
Show More
@@ -25,6 +25,8 b' news'
25 25 inside a repository group
26 26 - added alternative HTTP 403 response when client failed to authenticate. Helps
27 27 solving issues with Mercurial and LDAP
28 - #402 removed group prefix from repository name when listing repositories
29 inside a group
28 30
29 31 fixes
30 32 +++++
@@ -40,7 +40,14 b''
40 40 </ul>
41 41 </%def>
42 42
43 <%def name="repo_name(name,rtype,private,fork_of)">
43 <%def name="repo_name(name,rtype,private,fork_of,short_name=False)">
44 <%
45 def get_name(name,short_name=short_name):
46 if short_name:
47 return name.split('/')[-1]
48 else:
49 return name
50 %>
44 51 <div style="white-space: nowrap">
45 52 ##TYPE OF REPO
46 53 %if h.is_hg(rtype):
@@ -57,7 +64,7 b''
57 64 %endif
58 65
59 66 ##NAME
60 ${h.link_to(name,h.url('summary_home',repo_name=name),class_="repo_name")}
67 ${h.link_to(get_name(name),h.url('summary_home',repo_name=name),class_="repo_name")}
61 68 %if fork_of:
62 69 <a href="${h.url('summary_home',repo_name=fork_of)}">
63 70 <img class="icon" alt="${_('fork')}" title="${_('Fork of')} ${fork_of}" src="${h.url('/images/icons/arrow_divide.png')}"/></a>
@@ -17,5 +17,5 b''
17 17 ${self.menu('admin')}
18 18 </%def>
19 19 <%def name="main()">
20 <%include file="/index_base.html" args="parent=self"/>
20 <%include file="/index_base.html" args="parent=self,short_repo_names=True"/>
21 21 </%def>
@@ -4,5 +4,5 b''
4 4 <%def name="breadcrumbs()"></%def>
5 5 <%def name="page_nav()">${self.menu('home')}</%def>
6 6 <%def name="main()">
7 <%include file="index_base.html" args="parent=self"/>
7 <%include file="index_base.html" args="parent=self"/>
8 8 </%def>
@@ -81,7 +81,7 b''
81 81 </td>
82 82 ##REPO NAME AND ICONS
83 83 <td class="reponame">
84 ${dt.repo_name(repo['name'],repo['dbrepo']['repo_type'],repo['dbrepo']['private'],repo['dbrepo_fork'].get('repo_name'))}
84 ${dt.repo_name(repo['name'],repo['dbrepo']['repo_type'],repo['dbrepo']['private'],repo['dbrepo_fork'].get('repo_name'),pageargs.get('short_repo_names'))}
85 85 </td>
86 86 ##DESCRIPTION
87 87 <td><span class="tooltip" title="${h.tooltip(repo['description'])}">
General Comments 0
You need to be logged in to leave comments. Login now