Mercurial > kallithea
annotate rhodecode/templates/followers/followers_data.html @ 1279:cb216757a62d beta
#179 Added followers page
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 23 Apr 2011 17:11:12 +0200 |
parents | |
children | 215a4801bb1e |
rev | line source |
---|---|
1279
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
1 ## -*- coding: utf-8 -*- |
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
2 |
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
3 |
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
4 % for f in c.followers_pager: |
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
5 <div> |
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
6 <div class="follower_user"> |
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
7 <div class="gravatar"> |
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
8 <img alt="gravatar" src="${h.gravatar_url(f.user.email,24)}"/> |
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
9 </div> |
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
10 <span style="font-size: 20px"> <b>${f.user.username}</b> (${f.user.name} ${f.user.lastname})</span> |
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
11 </div> |
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
12 <div style="clear:both;padding-top: 10px"></div> |
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
13 <div class="follower_date">${_('Started following on')} - ${f.follows_from}</div> |
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
14 <div style="border-bottom: 1px solid #DDD;margin:10px 0px 10px 0px"></div> |
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
15 </div> |
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
16 % endfor |
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
17 |
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
18 |
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
19 <div class="pagination-wh pagination-left"> |
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
20 <script type="text/javascript"> |
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
21 var data_div = 'followers'; |
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
22 YAHOO.util.Event.onDOMReady(function(){ |
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
23 YAHOO.util.Event.addListener( |
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
24 YUD.getElementsByClassName('pager_link'),"click", |
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
25 function(){ |
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
26 YAHOO.util.Dom.setStyle(data_div,'opacity','0.3'); |
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
27 }); |
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
28 }); |
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
29 </script> |
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
30 |
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
31 ${c.followers_pager.pager('$link_previous ~2~ $link_next', |
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
32 onclick="""YAHOO.util.Connect.asyncRequest('GET','$partial_url',{ |
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
33 success:function(o){YAHOO.util.Dom.get(data_div).innerHTML=o.responseText; |
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
34 YUE.on(YAHOO.util.Dom.getElementsByClassName('pager_link'),"click",function(){ |
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
35 YAHOO.util.Dom.setStyle(data_div,'opacity','0.3');}); |
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
36 YAHOO.util.Dom.setStyle(data_div,'opacity','1');}},null); return false;""")} |
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
37 </div> |