Mercurial > kallithea
annotate rhodecode/templates/forks/forks_data.html @ 3552:7967d00e4692 beta
Stylistic cleanup - mostly formatting
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Tue, 19 Mar 2013 21:47:34 +0100 |
parents | c9b0f1d363c7 |
children | ec6354949623 |
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 | 4 % for f in c.forks_pager: |
5 <div> | |
6 <div class="fork_user"> | |
7 <div class="gravatar"> | |
8 <img alt="gravatar" src="${h.gravatar_url(f.user.email,24)}"/> | |
9 </div> | |
10 <span style="font-size: 20px"> | |
11 <b>${f.user.username}</b> (${f.user.name} ${f.user.lastname}) / | |
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 | 15 </div> |
16 <div style="clear:both;padding-top: 10px"></div> | |
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 | 23 <div style="border-bottom: 1px solid #DDD;margin:10px 0px 10px 0px"></div> |
24 </div> | |
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 | 31 show_more_event(); |
32 tooltip_activate(); | |
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 | 42 ${_('There are no forks yet')} |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1421
diff
changeset
|
43 % endif |