Changes for page TwitterMacros
Last modified by Ludovic Dubost on 2009/01/02 17:09
From version 10.1
edited by Ludovic Dubost
on 2009/01/02 16:44
on 2009/01/02 16:44
Change comment:
There is no comment for this version
To version 6.1
edited by Ludovic Dubost
on 2009/01/02 16:26
on 2009/01/02 16:26
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -2,38 +2,33 @@ 2 2 * Twitter macros allowing to display twitter data 3 3 *# 4 4 5 -#macro(twitter_display $list $nb $withuser) 6 -{pre} 5 +#macro(twitter_display $list) 7 7 <table> 8 8 #foreach($msg in $list) 9 -#if($velocityCount<$nb) 10 10 <tr> 11 11 <td style="border: 0px; border-bottom:1px dashed #D2DADA;"> 12 -#if($withuser)<a href="$msg.user.URL">$msg.user.name</a>#end $msg.text 13 -<br /> 10 +<a href="$msg.user.URL">$msg.user.name</a> $msg.text 14 14 <span style="color: #A2AAAA; font-size: 10px;">$xwiki.formatDate($msg.createdAt) #if($msg.source!="")from $msg.source #end</span> 15 15 </td> 16 16 </tr> 17 17 #end 18 -#end 19 19 </table> 20 -{/pre} 21 21 #end 22 22 23 23 24 -#macro(twitter_search $text $nb)19 +#macro(twitter_search $text) 25 25 #if(!$twitter) 26 26 #set($tg = $xwiki.parseGroovyFromPage("Twitter.TwitterGroovy", "Twitter.TwitterGroovy")) 27 27 #set($twitter = $tg.getTwitter("xwikiapi", "xwapi2008")) 28 28 #end 29 -#twitter_display($tg.search($text) $nb true)24 +#twitter_display($tg.search($text)) 30 30 #end 31 31 32 -#macro(twitter_user $user $nb)27 +#macro(twitter_user $user) 33 33 #if(!$twitter) 34 34 #set($tg = $xwiki.parseGroovyFromPage("Twitter.TwitterGroovy", "Twitter.TwitterGroovy")) 35 35 #set($twitter = $tg.getTwitter("xwikiapi", "xwapi2008")) 36 36 #end 37 -#twitter_display($twitter.getUserTimeline($user) $nb false)32 +#twitter_display($twitter.getUserTimeline($user)) 38 38 #end 39 39