voting of surftipps can now be done with comments

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2846 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 19 years ago
parent 278d8c3c7e
commit 6a73d858de

@ -5,6 +5,12 @@
<meta name="keywords" content="YaCy P2P peer-to-peer Surftips Social Bookmarking Link Voting">
<meta name="description" content="Surftips provided by the YaCy peer-to-peer network using public bookmarks, link votes and crawl start points">
#%env/templates/metas.template%#
<script type="text/javascript">
function pcomment(link) {
var c = window.prompt("Please enter a comment to your link recommendation. (Your Vote is also considered without a comment.)", "");
return link + "&comment=" + c;
}
</script>
</head>
<body>
#(display)#
@ -28,7 +34,7 @@
<img src="/env/grafics/empty.gif" title="" alt="" class="recommendIcon" />
<img src="/env/grafics/empty.gif" title="" alt="" class="deleteIcon" />
::
<a href="#[positiveVoteLink]#" title="positive vote" class="recommendlink"><img src="/env/grafics/empty.gif" title="positive vote" alt="Give positive vote" class="recommendIcon" /></a>
<a href="#[positiveVoteLink]#" title="positive vote" class="recommendlink" onClick="this.href=pcomment('#[positiveVoteLink]#')"><img src="/env/grafics/empty.gif" title="positive vote" alt="Give positive vote" class="recommendIcon" /></a>
<a href="#[negativeVoteLink]#" title="negative vote" class="deletelink" ><img src="/env/grafics/empty.gif" title="negative vote" alt="Give negative vote" class="deleteIcon" /></a>
#(/recommend)#
</div>

@ -95,6 +95,7 @@ public class Surftips {
map.put("description", crypt.simpleDecode(post.get("description", ""), null));
map.put("vote", "positive");
map.put("refid", post.get("refid", ""));
map.put("comment", post.get("comment", ""));
yacyCore.newsPool.publishMyNews(new yacyNewsRecord("stippavt", map));
}

Loading…
Cancel
Save