##// END OF EJS Templates
fixes #407 wrong url to edit repo on admin page
marcink -
r2159:19b4e283 beta
parent child Browse files
Show More
@@ -40,7 +40,7
40 </ul>
40 </ul>
41 </%def>
41 </%def>
42
42
43 <%def name="repo_name(name,rtype,private,fork_of,short_name=False)">
43 <%def name="repo_name(name,rtype,private,fork_of,short_name=False, admin=False)">
44 <%
44 <%
45 def get_name(name,short_name=short_name):
45 def get_name(name,short_name=short_name):
46 if short_name:
46 if short_name:
@@ -64,7 +64,11
64 %endif
64 %endif
65
65
66 ##NAME
66 ##NAME
67 ${h.link_to(get_name(name),h.url('summary_home',repo_name=name),class_="repo_name")}
67 %if admin:
68 ${h.link_to(get_name(name),h.url('edit_repo',repo_name=name),class_="repo_name")}
69 %else:
70 ${h.link_to(get_name(name),h.url('summary_home',repo_name=name),class_="repo_name")}
71 %endif
68 %if fork_of:
72 %if fork_of:
69 <a href="${h.url('summary_home',repo_name=fork_of)}">
73 <a href="${h.url('summary_home',repo_name=fork_of)}">
70 <img class="icon" alt="${_('fork')}" title="${_('Fork of')} ${fork_of}" src="${h.url('/images/icons/arrow_divide.png')}"/></a>
74 <img class="icon" alt="${_('fork')}" title="${_('Fork of')} ${fork_of}" src="${h.url('/images/icons/arrow_divide.png')}"/></a>
@@ -48,7 +48,7
48 ${dt.quick_menu(repo['name'])}
48 ${dt.quick_menu(repo['name'])}
49 </td>
49 </td>
50 <td class="reponame">
50 <td class="reponame">
51 ${dt.repo_name(repo['name'],repo['dbrepo']['repo_type'],repo['dbrepo']['private'],repo['dbrepo_fork'].get('repo_name'))}
51 ${dt.repo_name(repo['name'],repo['dbrepo']['repo_type'],repo['dbrepo']['private'],repo['dbrepo_fork'].get('repo_name'), admin=True)}
52 </td>
52 </td>
53 ##DESCRIPTION
53 ##DESCRIPTION
54 <td><span class="tooltip" title="${h.tooltip(repo['description'])}">
54 <td><span class="tooltip" title="${h.tooltip(repo['description'])}">
General Comments 0
You need to be logged in to leave comments. Login now