Mercurial > kallithea
comparison 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 |
comparison
equal
deleted
inserted
replaced
1278:2b098619e238 | 1279:cb216757a62d |
---|---|
1 ## -*- coding: utf-8 -*- | |
2 | |
3 | |
4 % for f in c.followers_pager: | |
5 <div> | |
6 <div class="follower_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"> <b>${f.user.username}</b> (${f.user.name} ${f.user.lastname})</span> | |
11 </div> | |
12 <div style="clear:both;padding-top: 10px"></div> | |
13 <div class="follower_date">${_('Started following on')} - ${f.follows_from}</div> | |
14 <div style="border-bottom: 1px solid #DDD;margin:10px 0px 10px 0px"></div> | |
15 </div> | |
16 % endfor | |
17 | |
18 | |
19 <div class="pagination-wh pagination-left"> | |
20 <script type="text/javascript"> | |
21 var data_div = 'followers'; | |
22 YAHOO.util.Event.onDOMReady(function(){ | |
23 YAHOO.util.Event.addListener( | |
24 YUD.getElementsByClassName('pager_link'),"click", | |
25 function(){ | |
26 YAHOO.util.Dom.setStyle(data_div,'opacity','0.3'); | |
27 }); | |
28 }); | |
29 </script> | |
30 | |
31 ${c.followers_pager.pager('$link_previous ~2~ $link_next', | |
32 onclick="""YAHOO.util.Connect.asyncRequest('GET','$partial_url',{ | |
33 success:function(o){YAHOO.util.Dom.get(data_div).innerHTML=o.responseText; | |
34 YUE.on(YAHOO.util.Dom.getElementsByClassName('pager_link'),"click",function(){ | |
35 YAHOO.util.Dom.setStyle(data_div,'opacity','0.3');}); | |
36 YAHOO.util.Dom.setStyle(data_div,'opacity','1');}},null); return false;""")} | |
37 </div> |