##// END OF EJS Templates
html: fixing forks table #3959
lisaq -
r7:ba8453c8 default
parent child Browse files
Show More
@@ -1,47 +1,49 b''
1 ## -*- coding: utf-8 -*-
1 ## -*- coding: utf-8 -*-
2 <%namespace name="base" file="/base/base.html"/>
2 <%namespace name="base" file="/base/base.html"/>
3
3
4 % if c.forks_pager:
4 % if c.forks_pager:
5 <table class="rctable fork_summary">
5 <table class="rctable fork_summary">
6 <tr>
6 <tr>
7 <th>${_('Owner')}</th>
7 <th>${_('Fork')}</th>
8 <th>${_('Fork')}</th>
8 <th>${_('Description')}</th>
9 <th>${_('Description')}</th>
9 <th>${_('Forked')}</th>
10 <th>${_('Forked')}</th>
10 <th></th>
11 <th></th>
11 </tr>
12 </tr>
12 % for f in c.forks_pager:
13 % for f in c.forks_pager:
13 <tr>
14 <tr>
14 <td class="td-user fork_user">
15 <td class="td-user fork_user">
15 ${base.gravatar_with_user(f.user.email, 16)}
16 ${base.gravatar_with_user(f.user.email, 16)}
16 &frasl;
17 </td>
18 <td class="td-componentname">
17 ${h.link_to(f.repo_name,h.url('summary_home',repo_name=f.repo_name))}
19 ${h.link_to(f.repo_name,h.url('summary_home',repo_name=f.repo_name))}
18 </td>
20 </td>
19 <td class="td-description">
21 <td class="td-description">
20 <div class="truncate">${f.description}</div>
22 <div class="truncate">${f.description}</div>
21 </td>
23 </td>
22 <td class="td-time follower_date">
24 <td class="td-time follower_date">
23 ${h.age_component(f.created_on)}
25 ${h.age_component(f.created_on)}
24 </td>
26 </td>
25 <td class="td-compare">
27 <td class="td-compare">
26 <a title="${_('Compare fork with %s' % c.repo_name)}"
28 <a title="${_('Compare fork with %s' % c.repo_name)}"
27 href="${h.url('compare_url',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_repo=f.repo_name,target_ref_type=c.rhodecode_db_repo.landing_rev[0],target_ref=c.rhodecode_db_repo.landing_rev[1], merge=1)}"
29 href="${h.url('compare_url',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_repo=f.repo_name,target_ref_type=c.rhodecode_db_repo.landing_rev[0],target_ref=c.rhodecode_db_repo.landing_rev[1], merge=1)}"
28 class="btn-link"><i class="icon-loop"></i> ${_('Compare fork')}</a>
30 class="btn-link"><i class="icon-loop"></i> ${_('Compare fork')}</a>
29 </td>
31 </td>
30 </tr>
32 </tr>
31 % endfor
33 % endfor
32 </table>
34 </table>
33 <div class="pagination-wh pagination-left">
35 <div class="pagination-wh pagination-left">
34 <script type="text/javascript">
36 <script type="text/javascript">
35 $(document).pjax('#forks .pager_link','#forks');
37 $(document).pjax('#forks .pager_link','#forks');
36 $(document).on('pjax:success',function(){
38 $(document).on('pjax:success',function(){
37 show_more_event();
39 show_more_event();
38 timeagoActivate();
40 timeagoActivate();
39 tooltip_activate();
41 tooltip_activate();
40 show_changeset_tooltip();
42 show_changeset_tooltip();
41 });
43 });
42 </script>
44 </script>
43 ${c.forks_pager.pager('$link_previous ~2~ $link_next')}
45 ${c.forks_pager.pager('$link_previous ~2~ $link_next')}
44 </div>
46 </div>
45 % else:
47 % else:
46 ${_('There are no forks yet')}
48 ${_('There are no forks yet')}
47 % endif
49 % endif
General Comments 0
You need to be logged in to leave comments. Login now