Author: lucaa
Date: 2008-02-20 20:40:29 +0100 (Wed, 20 Feb 2008)
New Revision: 7885
Modified:
xwiki-products/xwiki-watch/trunk/wikis/watch/src/main/resources/WatchCode/Translations
xwiki-products/xwiki-watch/trunk/wikis/watch/src/main/resources/WatchCode/Translations.fr
xwiki-products/xwiki-watch/trunk/wikis/watch/src/main/resources/WatchSheets/WikiWebHomeSheet
Log:
XWATCH-5: Wiki Integration
* Improved Watch.WebHome sheet
Modified:
xwiki-products/xwiki-watch/trunk/wikis/watch/src/main/resources/WatchCode/Translations
===================================================================
---
xwiki-products/xwiki-watch/trunk/wikis/watch/src/main/resources/WatchCode/Translations
2008-02-20 17:53:53 UTC (rev 7884)
+++
xwiki-products/xwiki-watch/trunk/wikis/watch/src/main/resources/WatchCode/Translations
2008-02-20 19:40:29 UTC (rev 7885)
@@ -325,6 +325,7 @@
watch.wiki.articles=Articles
watch.wiki.articles.flagged=Latest flagged articles
watch.wiki.articles.unread=Latest unread articles
+watch.wiki.articles.read=Latest read articles
watch.wiki.articles.tags =Articles tagged "{0}"
watch.wiki.articles.display=latest {0} items
watch.wiki.keywords = Keywords
Modified:
xwiki-products/xwiki-watch/trunk/wikis/watch/src/main/resources/WatchCode/Translations.fr
===================================================================
---
xwiki-products/xwiki-watch/trunk/wikis/watch/src/main/resources/WatchCode/Translations.fr
2008-02-20 17:53:53 UTC (rev 7884)
+++
xwiki-products/xwiki-watch/trunk/wikis/watch/src/main/resources/WatchCode/Translations.fr
2008-02-20 19:40:29 UTC (rev 7885)
@@ -323,6 +323,7 @@
watch.wiki.articles=Articles
watch.wiki.articles.flagged=Derniers articles importants
watch.wiki.articles.unread=Derniers articles non-lus
+watch.wiki.articles.read=Derniers articles lus
watch.wiki.articles.tags=Articles tagg�s "{0}"
watch.wiki.articles.display=Derniers {0} items
watch.wiki.keywords = Mots-cl�s
Modified:
xwiki-products/xwiki-watch/trunk/wikis/watch/src/main/resources/WatchSheets/WikiWebHomeSheet
===================================================================
---
xwiki-products/xwiki-watch/trunk/wikis/watch/src/main/resources/WatchSheets/WikiWebHomeSheet
2008-02-20 17:53:53 UTC (rev 7884)
+++
xwiki-products/xwiki-watch/trunk/wikis/watch/src/main/resources/WatchSheets/WikiWebHomeSheet
2008-02-20 19:40:29 UTC (rev 7885)
@@ -56,7 +56,7 @@
<content>1 $msg.get("watch.title")
#startfloatingbox()
#set($params = $xwiki.arrayList)
-#set($dispose = $params.add("[$msg.get('watch.wiki.reader') > Reader]"))
+#set($dispose = $params.add("[$msg.get('watch.wiki.reader') > Reader]"))
#set($message = $msg.get("watch.wiki.reader.goto", $params))
#if($message.equals("watch.wiki.reader.goto"))
[Watch Reader > Reader]
@@ -65,38 +65,8 @@
#end
#endfloatingbox()
$msg.get("watch.introduction")
+<div style="clear: both;"></div>
<div style="float: left; width: 50%;">
-#set($feedsTitle = $msg.get("watch.wiki.feeds"))
-#set($articlesTitle = $msg.get("watch.wiki.articles"))
-##* [$feedsTitle > ${doc.fullName}#H${feedsTitle}]
-##* [$articlesTitle > ${doc.fullName}#H${articlesTitle}]
-1.1 $feedsTitle
-#set($aggregatorsSql = ", BaseObject obj where doc.fullName=obj.name and
obj.className='XWiki.AggregatorURLClass' and doc.web='${doc.space}' order by
doc.creationDate desc")
-#set($list = $xwiki.searchDocuments($aggregatorsSql))
-#set($noFilter = true)
-#includeForm("WatchSheets.Results")
-##create the keywords list and print them
-<div style="border:1px solid #CCCCCC; margin: 10px 10px 10px 0;
padding:10px; background-color:#E4F6FF;">
-#set($keywordsSql = ", BaseObject obj where doc.fullName = obj.name and
obj.className = 'XWiki.KeywordClass' and doc.web = '${doc.space}'")
-#set($keywordsDocList = $xwiki.searchDocuments($keywordsSql))
-1.1 $msg.get("watch.wiki.keywords")
-#if ($keywordsDocList.size() > 0)
- <ul>
- #foreach($keywordDocName in $keywordsDocList)
- #set($keywordDoc = $xwiki.getDocument($keywordDocName))
- #set($keywordObj = $keywordDoc.getObject("XWiki.KeywordClass"))
- ##build the nice name
- #set($keywordName = "${keywordObj.getProperty('name').value}")
- #set($keywordGroup = false)
- #set($keywordGroup = $keywordObj.display('group', 'view'))
- #if ($keywordGroup && $keywordGroup != "")
- #set($keywordName = "${keywordName} - ${keywordGroup}")
- #end
- <li><a
href="${keywordDoc.getURL()}">${keywordName}</a></li>
- #end
- </ul>
-#end
-</div>
##get the tags to build the tags cloud
<div style="border:1px solid #CCCCCC; margin: 10px 10px 10px 0;
padding:10px; background-color:#E4F6FF;">
1.1 $msg.get("watch.wiki.tags")
@@ -124,31 +94,55 @@
<a style="font-size: ${fontSize}%;" href="${tagDocument.getURL("view",
"&tag=${tagName}")}">$tagName</a>
#end
</div>
-</div>
-<div style="float: left; width: 50%;">
-<div style="border:1px solid #CCCCCC; margin: 10px 0px 10px 10px;
padding:10px; background-color:#E4F6FF;">
+<div style="border:1px solid #CCCCCC; margin: 10px 10px 10px 0px;
padding:10px; background-color:#E4F6FF;">
#set($prDoc = $xwiki.getDocument("WatchCode.PressReview"))
1.1 $msg.get("watch.wiki.articles.flagged")
#set($url = $prDoc.getExternalURL("view",
"&space=${doc.space}&flagged=1&read=0&xpage=plain&limit=15"))
$xwiki.getURLContent(${url})
</div>
-<div style="border:1px solid #CCCCCC; margin: 10px 0px 10px 10px;
padding:10px; background-color:#E4F6FF;">
-1.1 $msg.get("watch.wiki.articles.unread")
-#set($url = $prDoc.getExternalURL("view",
"&space=${doc.space}&read=-1&xpage=plain&limit=15"))
+<div style="border:1px solid #CCCCCC; margin: 10px 10px 10px 0px;
padding:10px; background-color:#E4F6FF;">
+1.1 $msg.get("watch.wiki.articles.read")
+#set($url = $prDoc.getExternalURL("view",
"&space=${doc.space}&read=1&xpage=plain&limit=15"))
$xwiki.getURLContent(${url})
</div>
</div>
-<div style="clear: both;"></div>
-#*
-<div style="width:50%;">
-#set($articlesLimit = 100)
-#set($articlesParam = $xwiki.arrayList)
-#set($dispose = $articlesParam.add($articlesLimit))
-1.1 $articlesTitle &ndash; $msg.get("watch.wiki.articles.display",
$articlesParam)
-#set($articlesSql = ", BaseObject obj where doc.fullName=obj.name and
obj.className='XWiki.FeedEntryClass' and doc.web='${doc.space}' order by
doc.creationDate desc")
-#set($list = $xwiki.searchDocuments($articlesSql, $articlesLimit, 0))
-#set($noFilter = false)
+<div style="float: left; width: 50%;">
+##create the keywords list and print them
+<div style="border:1px solid #CCCCCC; margin: 10px 0px 10px 10px;
padding:10px; background-color:#E4F6FF;">
+#set($keywordsSql = ", BaseObject obj where doc.fullName = obj.name and
obj.className = 'XWiki.KeywordClass' and doc.web = '${doc.space}'")
+#set($keywordsDocList = $xwiki.searchDocuments($keywordsSql))
+1.1 $msg.get("watch.wiki.keywords")
+#if ($keywordsDocList.size() > 0)
+ <ul>
+ #foreach($keywordDocName in $keywordsDocList)
+ #set($keywordDoc = $xwiki.getDocument($keywordDocName))
+ #set($keywordObj = $keywordDoc.getObject("XWiki.KeywordClass"))
+ ##build the nice name
+ #set($keywordName = "${keywordObj.getProperty('name').value}")
+ #set($keywordGroup = false)
+ #set($keywordGroup = $keywordObj.display('group', 'view'))
+ #if ($keywordGroup && $keywordGroup != "")
+ #set($keywordName = "${keywordName} - ${keywordGroup}")
+ #end
+ <li><a
href="${keywordDoc.getURL()}">${keywordName}</a></li>
+ #end
+ </ul>
+#end
+</div>
+## put the feeds list in
+#set($feedsTitle = $msg.get("watch.wiki.feeds"))
+#set($articlesTitle = $msg.get("watch.wiki.articles"))
+##* [$feedsTitle > ${doc.fullName}#H${feedsTitle}]
+##* [$articlesTitle > ${doc.fullName}#H${articlesTitle}]
+<div style="border:1px solid #CCCCCC; margin: 10px 0px 10px 10px;
padding:10px;">
+1.1 $feedsTitle
+#set($aggregatorsSql = ", BaseObject obj where doc.fullName=obj.name and
obj.className='XWiki.AggregatorURLClass' and doc.web='${doc.space}' order by
doc.creationDate desc")
+## limit the number of feeds to 10
+#set($feedsLimit = 10)
+#set($list = $xwiki.searchDocuments($aggregatorsSql, $feedsLimit, 0))
+#set($noFilter = true)
#includeForm("WatchSheets.Results")
</div>
-*#</content>
+</div>
+<div style="clear: both;"></div></content>
</xwikidoc>
_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications