##// END OF EJS Templates
added wrapping of long tooltips in index page
marcink -
r905:1294f2ba beta
parent child Browse files
Show More
@@ -92,9 +92,9 b" def recursive_replace(str, replace=' '):"
92 class _ToolTip(object):
92 class _ToolTip(object):
93
93
94 def __call__(self, tooltip_title, trim_at=50):
94 def __call__(self, tooltip_title, trim_at=50):
95 """
95 """Special function just to wrap our text into nice formatted
96 Special function just to wrap our text into nice formatted autowrapped
96 autowrapped text
97 text
97
98 :param tooltip_title:
98 :param tooltip_title:
99 """
99 """
100
100
@@ -353,7 +353,7 b' function onSuccess(){'
353
353
354 function toggleFollowingUser(fallows_user_id,token){
354 function toggleFollowingUser(fallows_user_id,token){
355 args = 'follows_user_id='+fallows_user_id;
355 args = 'follows_user_id='+fallows_user_id;
356 args+= '&auth_token='+token;
356 args+= '&auth_token='+token;
357 YUC.asyncRequest('POST',base_url,{
357 YUC.asyncRequest('POST',base_url,{
358 success:function(o){
358 success:function(o){
359 onSuccess();
359 onSuccess();
@@ -363,7 +363,7 b' function toggleFollowingUser(fallows_use'
363
363
364 function toggleFollowingRepo(fallows_repo_id,token){
364 function toggleFollowingRepo(fallows_repo_id,token){
365 args = 'follows_repo_id='+fallows_repo_id;
365 args = 'follows_repo_id='+fallows_repo_id;
366 args+= '&auth_token='+token;
366 args+= '&auth_token='+token;
367 YUC.asyncRequest('POST',base_url,{
367 YUC.asyncRequest('POST',base_url,{
368 success:function(o){
368 success:function(o){
369 onSuccess();
369 onSuccess();
@@ -87,7 +87,7 b''
87 </div>
87 </div>
88 </td>
88 </td>
89 ##DESCRIPTION
89 ##DESCRIPTION
90 <td><span class="tooltip" title="${repo['description']}">
90 <td><span class="tooltip" title="${h.tooltip(repo['description'])}">
91 ${h.truncate(repo['description'],60)}</span>
91 ${h.truncate(repo['description'],60)}</span>
92 </td>
92 </td>
93 ##LAST CHANGE
93 ##LAST CHANGE
General Comments 0
You need to be logged in to leave comments. Login now