##// END OF EJS Templates
channelstream: push events with comments on single commits....
channelstream: push events with comments on single commits. - use wrapper for posting to simplify the code.

File last commit:

r1957:00f3a509 default
r1970:ef3d81a8 default
Show More
forks_data.mako
56 lines | 1.9 KiB | application/x-mako | MakoHtmlLexer
templating: use .mako as extensions for template files.
r1282 ## -*- coding: utf-8 -*-
<%namespace name="base" file="/base/base.mako"/>
% if c.forks_pager:
<table class="rctable fork_summary">
<tr>
<th>${_('Owner')}</th>
<th>${_('Fork')}</th>
<th>${_('Description')}</th>
<th>${_('Forked')}</th>
<th></th>
</tr>
% for f in c.forks_pager:
<tr>
<td class="td-user fork_user">
${base.gravatar_with_user(f.user.email, 16)}
</td>
<td class="td-componentname">
repo-summary: re-implemented summary view as pyramid....
r1785 ${h.link_to(f.repo_name,h.route_path('repo_summary',repo_name=f.repo_name))}
templating: use .mako as extensions for template files.
r1282 </td>
<td class="td-description">
<div class="truncate">${f.description}</div>
</td>
<td class="td-time follower_date">
${h.age_component(f.created_on, time_is_local=True)}
</td>
<td class="td-compare">
dan
tooltip: use consistent h.tooltip usage to set tooltips.
r1843 <a title="${h.tooltip(_('Compare fork with %s' % c.repo_name))}"
compare: migrated code from pylons to pyramid views.
r1957 class="btn-link"
href="${h.route_path('repo_compare',
repo_name=c.repo_name,
source_ref_type=c.rhodecode_db_repo.landing_rev[0],
source_ref=c.rhodecode_db_repo.landing_rev[1],
target_ref_type=c.rhodecode_db_repo.landing_rev[0],
target_ref=c.rhodecode_db_repo.landing_rev[1],
_query=dict(merge=1, target_repo=f.repo_name))}"
>
${_('Compare fork')}
</a>
templating: use .mako as extensions for template files.
r1282 </td>
</tr>
% endfor
</table>
<div class="pagination-wh pagination-left">
<script type="text/javascript">
$(document).pjax('#forks .pager_link','#forks');
$(document).on('pjax:success',function(){
show_more_event();
timeagoActivate();
});
</script>
${c.forks_pager.pager('$link_previous ~2~ $link_next')}
</div>
% else:
${_('There are no forks yet')}
% endif