*) added login link at bottom of page

*) empty tags will not be displayed any longer

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4372 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
low012 17 years ago
parent 4ce6fab428
commit 089faf1a00

@ -220,7 +220,7 @@
<a href="Bookmarks.html?tag=#[tag]#&amp;start=#[start]#&amp;num=10">10</a> <a href="Bookmarks.html?tag=#[tag]#&amp;start=#[start]#&amp;num=10">10</a>
<a href="Bookmarks.html?tag=#[tag]#&amp;start=#[start]#&amp;num=50">50</a> <a href="Bookmarks.html?tag=#[tag]#&amp;start=#[start]#&amp;num=50">50</a>
<a href="Bookmarks.html?tag=#[tag]#&amp;start=#[start]#&amp;num=100">100</a> <a href="Bookmarks.html?tag=#[tag]#&amp;start=#[start]#&amp;num=100">100</a>
Bookmarks per page. Bookmarks per page. #(admin)# - <a href="Bookmarks.html?login=true">Login</a>::#(/admin)#
</p> </p>
</div> </div>
#%env/templates/footer.template%# #%env/templates/footer.template%#

@ -117,10 +117,13 @@ public class Bookmarks {
prop.put("address", address); prop.put("address", address);
//defaultvalues //defaultvalues
if(isAdmin) if(isAdmin) {
prop.put("mode", "1"); prop.put("mode", "1");
else prop.put("admin", "1");
} else {
prop.put("mode", "0"); prop.put("mode", "0");
prop.put("admin", "0");
}
prop.put("mode_edit", "0"); prop.put("mode_edit", "0");
prop.put("mode_title", ""); prop.put("mode_title", "");
prop.put("mode_description", ""); prop.put("mode_description", "");
@ -315,7 +318,7 @@ public class Bookmarks {
tagCount=0; tagCount=0;
while (tagsIt.hasNext()) { while (tagsIt.hasNext()) {
String tname = tagsIt.next(); String tname = tagsIt.next();
if (!tname.startsWith("/")) { if ((!tname.startsWith("/")) && (!tname.equals(""))) {
prop.put("bookmarks_"+count+"_tags_"+tagCount+"_tag", tname); prop.put("bookmarks_"+count+"_tags_"+tagCount+"_tag", tname);
tagCount++; tagCount++;
} }
@ -389,7 +392,7 @@ public class Bookmarks {
} }
while(it.hasNext()){ while(it.hasNext()){
tag=(Tag) it.next(); tag=(Tag) it.next();
if (!tag.getTagName().startsWith("/")) { if ((!tag.getTagName().startsWith("/")) && (!tag.getTagName().equals(""))) {
prop.putHTML(id+"_"+count+"_name", tag.getFriendlyName()); prop.putHTML(id+"_"+count+"_name", tag.getFriendlyName());
prop.putHTML(id+"_"+count+"_tag", tag.getTagName()); prop.putHTML(id+"_"+count+"_tag", tag.getTagName());
prop.put(id+"_"+count+"_num", tag.size()); prop.put(id+"_"+count+"_num", tag.size());

Loading…
Cancel
Save