annotate rhodecode/templates/followers/followers_data.html @ 2971:2bfcec6a3985 beta

new tooltip implementation - added lazy loading of changeset tooltips for journal data
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 29 Oct 2012 21:18:14 +0100
parents f467c75544af
children 9937afa7f093
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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 % for f in c.followers_pager:
cb216757a62d #179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
4 <div>
cb216757a62d #179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
5 <div class="follower_user">
cb216757a62d #179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
6 <div class="gravatar">
cb216757a62d #179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
7 <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
8 </div>
cb216757a62d #179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
9 <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
10 </div>
cb216757a62d #179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
11 <div style="clear:both;padding-top: 10px"></div>
2420
a78cd80ad385 Added localization for the “quick filter” menu item and improved localization on the followers page.
Vincent Duvert <vincent@duvert.net>
parents: 1888
diff changeset
12 <div class="follower_date">${_('Started following -')}
2427
f467c75544af Added h.tooltip to all places that tooltip_title is used.
Marcin Kuzminski <marcin@python-works.com>
parents: 2420
diff changeset
13 <span class="tooltip" title="${h.tooltip(f.follows_from)}"> ${h.age(f.follows_from)}</span></div>
1279
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>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1421
diff changeset
15 </div>
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1421
diff changeset
16 % endfor
1279
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 <div class="pagination-wh pagination-left">
cb216757a62d #179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
19 <script type="text/javascript">
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: 1280
diff changeset
20 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: 1280
diff changeset
21 YUE.delegate("followers","click",function(e, matchedEl, container){
2971
2bfcec6a3985 new tooltip implementation
Marcin Kuzminski <marcin@python-works.com>
parents: 2427
diff changeset
22 ypjax(e.target.href,"followers",function(){
2bfcec6a3985 new tooltip implementation
Marcin Kuzminski <marcin@python-works.com>
parents: 2427
diff changeset
23 show_more_event();
2bfcec6a3985 new tooltip implementation
Marcin Kuzminski <marcin@python-works.com>
parents: 2427
diff changeset
24 tooltip_activate();
2bfcec6a3985 new tooltip implementation
Marcin Kuzminski <marcin@python-works.com>
parents: 2427
diff changeset
25 show_changeset_tooltip();
2bfcec6a3985 new tooltip implementation
Marcin Kuzminski <marcin@python-works.com>
parents: 2427
diff changeset
26 });
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: 1280
diff changeset
27 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: 1280
diff changeset
28 },'.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: 1280
diff changeset
29 });
1279
cb216757a62d #179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
30 </script>
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: 1280
diff changeset
31 ${c.followers_pager.pager('$link_previous ~2~ $link_next')}
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1421
diff changeset
32 </div>