annotate rhodecode/templates/forks/forks_data.html @ 3322:c9b0f1d363c7 beta

compare: swap org and other when they refer to different repos, ie are pull request style Pull requests will have a different from/to description - but in a consistent and slightly better way that can be improved later. A pull request diff is empathic: "How will this look for the peer I'm proposing to" style.
author Mads Kiilerich <madski@unity3d.com>
date Fri, 01 Feb 2013 23:13:10 +0100
parents b36285f90f89
children ec6354949623
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1301
7e75af301842 Added simple forks page, resolves issue #179
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
1 ## -*- coding: utf-8 -*-
7e75af301842 Added simple forks page, resolves issue #179
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
2
1304
5a96551ee9c0 gui-improvments
Marcin Kuzminski <marcin@python-works.com>
parents: 1301
diff changeset
3 % if c.forks_pager:
3197
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2973
diff changeset
4 % for f in c.forks_pager:
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2973
diff changeset
5 <div>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2973
diff changeset
6 <div class="fork_user">
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2973
diff changeset
7 <div class="gravatar">
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2973
diff changeset
8 <img alt="gravatar" src="${h.gravatar_url(f.user.email,24)}"/>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2973
diff changeset
9 </div>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2973
diff changeset
10 <span style="font-size: 20px">
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2973
diff changeset
11 <b>${f.user.username}</b> (${f.user.name} ${f.user.lastname}) /
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2973
diff changeset
12 ${h.link_to(f.repo_name,h.url('summary_home',repo_name=f.repo_name))}
3198
c20adbaf16af html: random indentation fixes
Mads Kiilerich <madski@unity3d.com>
parents: 3197
diff changeset
13 </span>
c20adbaf16af html: random indentation fixes
Mads Kiilerich <madski@unity3d.com>
parents: 3197
diff changeset
14 <div style="padding:5px 3px 3px 42px;">${f.description}</div>
3197
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2973
diff changeset
15 </div>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2973
diff changeset
16 <div style="clear:both;padding-top: 10px"></div>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2973
diff changeset
17 <div class="follower_date">${_('forked')} -
3198
c20adbaf16af html: random indentation fixes
Mads Kiilerich <madski@unity3d.com>
parents: 3197
diff changeset
18 <span class="tooltip" title="${h.tooltip(h.fmt_date(f.created_on))}"> ${h.age(f.created_on)}</span>
c20adbaf16af html: random indentation fixes
Mads Kiilerich <madski@unity3d.com>
parents: 3197
diff changeset
19 <a title="${_('compare fork with %s' % c.repo_name)}"
3322
c9b0f1d363c7 compare: swap org and other when they refer to different repos, ie are pull request style
Mads Kiilerich <madski@unity3d.com>
parents: 3317
diff changeset
20 href="${h.url('compare_url',repo_name=c.repo_name,org_ref_type='branch',org_ref='default',other_repo=f.repo_name,other_ref_type='branch',other_ref='default')}"
3198
c20adbaf16af html: random indentation fixes
Mads Kiilerich <madski@unity3d.com>
parents: 3197
diff changeset
21 class="ui-btn small">${_('Compare fork')}</a>
c20adbaf16af html: random indentation fixes
Mads Kiilerich <madski@unity3d.com>
parents: 3197
diff changeset
22 </div>
3197
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2973
diff changeset
23 <div style="border-bottom: 1px solid #DDD;margin:10px 0px 10px 0px"></div>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2973
diff changeset
24 </div>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2973
diff changeset
25 % endfor
1421
c6b811f11c94 Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
Marcin Kuzminski <marcin@python-works.com>
parents: 1304
diff changeset
26 <div class="pagination-wh pagination-left">
c6b811f11c94 Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
Marcin Kuzminski <marcin@python-works.com>
parents: 1304
diff changeset
27 <script type="text/javascript">
c6b811f11c94 Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
Marcin Kuzminski <marcin@python-works.com>
parents: 1304
diff changeset
28 YUE.onDOMReady(function(){
c6b811f11c94 Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
Marcin Kuzminski <marcin@python-works.com>
parents: 1304
diff changeset
29 YUE.delegate("forks","click",function(e, matchedEl, container){
2971
2bfcec6a3985 new tooltip implementation
Marcin Kuzminski <marcin@python-works.com>
parents: 2673
diff changeset
30 ypjax(e.target.href,"forks",function(){
3197
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2973
diff changeset
31 show_more_event();
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2973
diff changeset
32 tooltip_activate();
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2973
diff changeset
33 show_changeset_tooltip();
2971
2bfcec6a3985 new tooltip implementation
Marcin Kuzminski <marcin@python-works.com>
parents: 2673
diff changeset
34 });
1421
c6b811f11c94 Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
Marcin Kuzminski <marcin@python-works.com>
parents: 1304
diff changeset
35 YUE.preventDefault(e);
c6b811f11c94 Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
Marcin Kuzminski <marcin@python-works.com>
parents: 1304
diff changeset
36 },'.pager_link');
c6b811f11c94 Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
Marcin Kuzminski <marcin@python-works.com>
parents: 1304
diff changeset
37 });
c6b811f11c94 Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
Marcin Kuzminski <marcin@python-works.com>
parents: 1304
diff changeset
38 </script>
c6b811f11c94 Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
Marcin Kuzminski <marcin@python-works.com>
parents: 1304
diff changeset
39 ${c.forks_pager.pager('$link_previous ~2~ $link_next')}
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1421
diff changeset
40 </div>
1304
5a96551ee9c0 gui-improvments
Marcin Kuzminski <marcin@python-works.com>
parents: 1301
diff changeset
41 % else:
3197
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 2973
diff changeset
42 ${_('There are no forks yet')}
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1421
diff changeset
43 % endif