@@ -31,49 +31,53 @@
</li>
<li>
<a title="${_('Fork')}" href="${h.url('repo_fork_home',repo_name=repo_name)}">
<span class="icon">
<img src="${h.url('/images/icons/arrow_divide.png')}" alt="${_('Fork')}" />
</span>
<span>${_('Fork')}</span>
</a>
</ul>
</%def>
<%def name="repo_name(name,rtype,private,fork_of,short_name=False)">
<%def name="repo_name(name,rtype,private,fork_of,short_name=False, admin=False)">
<%
def get_name(name,short_name=short_name):
if short_name:
return name.split('/')[-1]
else:
return name
%>
<div style="white-space: nowrap">
##TYPE OF REPO
%if h.is_hg(rtype):
<img class="icon" title="${_('Mercurial repository')}" alt="${_('Mercurial repository')}" src="${h.url('/images/icons/hgicon.png')}"/>
%elif h.is_git(rtype):
<img class="icon" title="${_('Git repository')}" alt="${_('Git repository')}" src="${h.url('/images/icons/giticon.png')}"/>
%endif
##PRIVATE/PUBLIC
%if private:
<img class="icon" title="${_('private repository')}" alt="${_('private repository')}" src="${h.url('/images/icons/lock.png')}"/>
%else:
<img class="icon" title="${_('public repository')}" alt="${_('public repository')}" src="${h.url('/images/icons/lock_open.png')}"/>
##NAME
${h.link_to(get_name(name),h.url('summary_home',repo_name=name),class_="repo_name")}
%if admin:
${h.link_to(get_name(name),h.url('edit_repo',repo_name=name),class_="repo_name")}
%if fork_of:
<a href="${h.url('summary_home',repo_name=fork_of)}">
<img class="icon" alt="${_('fork')}" title="${_('Fork of')} ${fork_of}" src="${h.url('/images/icons/arrow_divide.png')}"/></a>
</div>
<%def name="revision(name,rev,tip,author,last_msg)">
<div>
%if rev >= 0:
@@ -39,25 +39,25 @@
<th class="left">${_('Tip')}</th>
<th class="left">${_('Contact')}</th>
<th class="left">${_('Action')}</th>
</tr>
</thead>
%for cnt,repo in enumerate(c.repos_list):
<tr class="parity${(cnt+1)%2}">
<td class="quick_repo_menu">
${dt.quick_menu(repo['name'])}
</td>
<td class="reponame">
${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'), admin=True)}
##DESCRIPTION
<td><span class="tooltip" title="${h.tooltip(repo['description'])}">
${h.truncate(repo['description'],60)}</span>
##LAST CHANGE
<td>
<span class="tooltip" title="${repo['last_change']}">${h.age(repo['last_change'])}</span>
##LAST REVISION
${dt.revision(repo['name'],repo['rev'],repo['tip'],repo['author'],repo['last_msg'])}
Status change: