##// 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 inside a repository group
25 inside a repository group
26 - added alternative HTTP 403 response when client failed to authenticate. Helps
26 - added alternative HTTP 403 response when client failed to authenticate. Helps
27 solving issues with Mercurial and LDAP
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 fixes
31 fixes
30 +++++
32 +++++
@@ -40,7 +40,14 b''
40 </ul>
40 </ul>
41 </%def>
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 <div style="white-space: nowrap">
51 <div style="white-space: nowrap">
45 ##TYPE OF REPO
52 ##TYPE OF REPO
46 %if h.is_hg(rtype):
53 %if h.is_hg(rtype):
@@ -57,7 +64,7 b''
57 %endif
64 %endif
58
65
59 ##NAME
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 %if fork_of:
68 %if fork_of:
62 <a href="${h.url('summary_home',repo_name=fork_of)}">
69 <a href="${h.url('summary_home',repo_name=fork_of)}">
63 <img class="icon" alt="${_('fork')}" title="${_('Fork of')} ${fork_of}" src="${h.url('/images/icons/arrow_divide.png')}"/></a>
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 ${self.menu('admin')}
17 ${self.menu('admin')}
18 </%def>
18 </%def>
19 <%def name="main()">
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 </%def>
21 </%def>
@@ -81,7 +81,7 b''
81 </td>
81 </td>
82 ##REPO NAME AND ICONS
82 ##REPO NAME AND ICONS
83 <td class="reponame">
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 </td>
85 </td>
86 ##DESCRIPTION
86 ##DESCRIPTION
87 <td><span class="tooltip" title="${h.tooltip(repo['description'])}">
87 <td><span class="tooltip" title="${h.tooltip(repo['description'])}">
General Comments 0
You need to be logged in to leave comments. Login now