changeset 905:1294f2baf2bc beta

added wrapping of long tooltips in index page
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 01 Jan 2011 22:43:37 +0100
parents 82aaf4e71817
children c1899a7d02c2
files rhodecode/lib/helpers.py rhodecode/templates/base/base.html rhodecode/templates/index.html
diffstat 3 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/lib/helpers.py	Sat Jan 01 19:22:09 2011 +0100
+++ b/rhodecode/lib/helpers.py	Sat Jan 01 22:43:37 2011 +0100
@@ -92,9 +92,9 @@
 class _ToolTip(object):
 
     def __call__(self, tooltip_title, trim_at=50):
-        """
-        Special function just to wrap our text into nice formatted autowrapped
-        text
+        """Special function just to wrap our text into nice formatted 
+        autowrapped text
+        
         :param tooltip_title:
         """
 
--- a/rhodecode/templates/base/base.html	Sat Jan 01 19:22:09 2011 +0100
+++ b/rhodecode/templates/base/base.html	Sat Jan 01 22:43:37 2011 +0100
@@ -353,7 +353,7 @@
 
 function toggleFollowingUser(fallows_user_id,token){
     args = 'follows_user_id='+fallows_user_id;
-    args+= '&auth_token='+token;
+    args+= '&amp;auth_token='+token;
     YUC.asyncRequest('POST',base_url,{
         success:function(o){
         	onSuccess();
@@ -363,7 +363,7 @@
 
 function toggleFollowingRepo(fallows_repo_id,token){
     args = 'follows_repo_id='+fallows_repo_id;
-    args+= '&auth_token='+token;
+    args+= '&amp;auth_token='+token;
     YUC.asyncRequest('POST',base_url,{
         success:function(o){
         	onSuccess();
--- a/rhodecode/templates/index.html	Sat Jan 01 19:22:09 2011 +0100
+++ b/rhodecode/templates/index.html	Sat Jan 01 22:43:37 2011 +0100
@@ -87,7 +87,7 @@
 		            </div>
 		            </td>
 		            ##DESCRIPTION
-		            <td><span class="tooltip" title="${repo['description']}">
+		            <td><span class="tooltip" title="${h.tooltip(repo['description'])}">
 		               ${h.truncate(repo['description'],60)}</span>
 		            </td>
 		            ##LAST CHANGE