Author: scottbw
Date: Fri Jan 13 11:52:50 2012
New Revision: 1231026
URL: http://svn.apache.org/viewvc?rev=1231026&view=rev
Log:
Use summary HTML template in twitter widget
Added:
incubator/wookie/trunk/widgets/templates/widgets/twitter/item_summary_template.html
Modified:
incubator/wookie/trunk/widgets/templates/widgets/twitter/widget.properties
Added:
incubator/wookie/trunk/widgets/templates/widgets/twitter/item_summary_template.html
URL:
http://svn.apache.org/viewvc/incubator/wookie/trunk/widgets/templates/widgets/twitter/item_summary_template.html?rev=1231026&view=auto
==============================================================================
---
incubator/wookie/trunk/widgets/templates/widgets/twitter/item_summary_template.html
(added)
+++
incubator/wookie/trunk/widgets/templates/widgets/twitter/item_summary_template.html
Fri Jan 13 11:52:50 2012
@@ -0,0 +1,21 @@
+<!--
+
+The template used for item summaries, representing a single record but before
+the item detail has been retrieved. We override this to provide all the info
in the summary
+and not the detail template - this is because the Twitter API is rate limited,
and we can
+populate the whole thing directly in one call.
+
+Note the OnClick event handler that triggers a search for the user by their
screen_name. This
+is missing quotes as these are added at some point in the processing of the
parameter - if you
+include a quote or an escape character then between Ant and JQuery something
will go wrong :(
+Still, it works as is)
+
+-->
+
+<li class='tweet result' wid='${ID}'>
+ <a href='#'
onclick=${widget.shortname}_browse_controller.search('${SCREEN_NAME}')><img
class='tweet_avatar' alt='Avatar for ${SCREEN_NAME}; click to read more tweets
from this user' title='See more tweets from ${SCREEN_NAME}'
src='${PROFILE_IMAGE_URL}'></a>
+ <span class='tweet_text'>${TEXT}</span>
+ <br clear='left'>
+ <abbr class='timeago' title='${CREATED_AT}'>${CREATED_AT}</abbr>
+ <div class='detail'></div>
+</li>
Modified:
incubator/wookie/trunk/widgets/templates/widgets/twitter/widget.properties
URL:
http://svn.apache.org/viewvc/incubator/wookie/trunk/widgets/templates/widgets/twitter/widget.properties?rev=1231026&r1=1231025&r2=1231026&view=diff
==============================================================================
--- incubator/wookie/trunk/widgets/templates/widgets/twitter/widget.properties
(original)
+++ incubator/wookie/trunk/widgets/templates/widgets/twitter/widget.properties
Fri Jan 13 11:52:50 2012
@@ -41,21 +41,6 @@ browse.search.url="http://api.twitter.co
browse.collection.template = "<div id='results'
data-role='collapsible-set'><ul class='tweet_list'>${ITEMS}</ul></div>"
#
-# The template string to use for item summaries, representing a single record
but before
-# the item detail has been retrieved. We override this to provide all the info
in the summary
-# and not the detail template - this is because the Twitter API is rate
limited, and we can
-# populate the whole thing directly in one call.
-#
-# Note the OnClick event handler that triggers a search for the user by their
screen_name. This
-# is missing quotes as these are added at some point in the processing of the
parameter - if you
-# include a quote or an escape character then between Ant and JQuery something
will go wrong :(
-# (Still, it works as is)
-#
-# type: string
-#
-browse.item.summary.template = <li class='tweet result' wid='${ID}'><a
href='#'
onclick=${widget.shortname}_browse_controller.search('${SCREEN_NAME}')><img
class='tweet_avatar' alt='Avatar for ${SCREEN_NAME}; click to read more tweets
from this user' title='See more tweets from ${SCREEN_NAME}'
src='${PROFILE_IMAGE_URL}'></a><span class='tweet_text'>${TEXT}</span></b><br
clear='left'><abbr class='timeago'
title='${CREATED_AT}'>${CREATED_AT}</abbr><div class='detail'></div></li>
-
-#
# The names of the elements to map into the template placeholders. E.g. if it
contains "title", then $TITLE in the template
# would be replaced by the content of the <title> element in the XML data.
# In our case these are the important elements returned by the Twitter API.