forks_data.html
43 lines
| 1.9 KiB
| text/html
|
HtmlLexer
r1301 | ## -*- coding: utf-8 -*- | |||
r1304 | % if c.forks_pager: | |||
|
r3197 | % for f in c.forks_pager: | ||
<div> | ||||
<div class="fork_user"> | ||||
<div class="gravatar"> | ||||
<img alt="gravatar" src="${h.gravatar_url(f.user.email,24)}"/> | ||||
</div> | ||||
<span style="font-size: 20px"> | ||||
<b>${f.user.username}</b> (${f.user.name} ${f.user.lastname}) / | ||||
${h.link_to(f.repo_name,h.url('summary_home',repo_name=f.repo_name))} | ||||
|
r3198 | </span> | ||
<div style="padding:5px 3px 3px 42px;">${f.description}</div> | ||||
|
r3197 | </div> | ||
<div style="clear:both;padding-top: 10px"></div> | ||||
|
r3654 | <div class="follower_date">${_('Forked')} - | ||
|
r3198 | <span class="tooltip" title="${h.tooltip(h.fmt_date(f.created_on))}"> ${h.age(f.created_on)}</span> | ||
|
r3654 | <a title="${_('Compare fork with %s' % c.repo_name)}" | ||
|
r4116 | href="${h.url('compare_url',repo_name=c.repo_name, org_ref_type=c.rhodecode_db_repo.landing_rev[0],org_ref=c.rhodecode_db_repo.landing_rev[1],other_repo=f.repo_name,other_ref_type=c.rhodecode_db_repo.landing_rev[0],other_ref=c.rhodecode_db_repo.landing_rev[1], merge=1)}" | ||
class="btn btn-small"><i class="icon-loop"></i> ${_('Compare fork')}</a> | ||||
|
r3198 | </div> | ||
|
r3197 | <div style="border-bottom: 1px solid #DDD;margin:10px 0px 10px 0px"></div> | ||
</div> | ||||
% endfor | ||||
r1421 | <div class="pagination-wh pagination-left"> | |||
<script type="text/javascript"> | ||||
YUE.onDOMReady(function(){ | ||||
YUE.delegate("forks","click",function(e, matchedEl, container){ | ||||
r2971 | ypjax(e.target.href,"forks",function(){ | |||
|
r3197 | show_more_event(); | ||
tooltip_activate(); | ||||
show_changeset_tooltip(); | ||||
r2971 | }); | |||
r1421 | YUE.preventDefault(e); | |||
},'.pager_link'); | ||||
}); | ||||
</script> | ||||
${c.forks_pager.pager('$link_previous ~2~ $link_next')} | ||||
r1888 | </div> | |||
r1304 | % else: | |||
|
r3197 | ${_('There are no forks yet')} | ||
r1888 | % endif | |||