From: <jbo...@li...> - 2005-08-23 20:10:28
|
Author: szimano Date: 2005-08-23 16:10:20 -0400 (Tue, 23 Aug 2005) New Revision: 934 Added: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/AttachmentListPlugin.java Removed: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/AttachementListPlugin.java Modified: trunk/forge/portal-extensions/forge-wiki/src/etc/org/jboss/wiki/WikiTypes.xml trunk/forge/portal-extensions/forge-wiki/src/web/WEB-INF/jsp/Wiki.jsp Log: misspels Modified: trunk/forge/portal-extensions/forge-wiki/src/etc/org/jboss/wiki/WikiTypes.xml =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/etc/org/jboss/wiki/WikiTypes.xml 2005-08-23 19:26:34 UTC (rev 933) +++ trunk/forge/portal-extensions/forge-wiki/src/etc/org/jboss/wiki/WikiTypes.xml 2005-08-23 20:10:20 UTC (rev 934) @@ -17,8 +17,8 @@ <class>org.jboss.wiki.plugins.HTMLTranslator</class> </plugin> <plugin> - <name>attachementList</name> - <class>org.jboss.wiki.plugins.AttachementListPlugin</class> + <name>attachmentList</name> + <class>org.jboss.wiki.plugins.AttachmentListPlugin</class> </plugin> </wikiType> <wikiType> Deleted: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/AttachementListPlugin.java =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/AttachementListPlugin.java 2005-08-23 19:26:34 UTC (rev 933) +++ trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/AttachementListPlugin.java 2005-08-23 20:10:20 UTC (rev 934) @@ -1,61 +0,0 @@ -/************************************************** - * * - * JBoss Labs: Creating Professional Open Source * - * * - * Distributable under LGPL license. * - * See terms of license at gnu.org. * - * * - *************************************************/ - -package org.jboss.wiki.plugins; - -import java.util.Set; - -import org.jboss.wiki.WikiPage; -import org.jboss.wiki.WikiPlugin; -import org.jboss.wiki.WikiSession; - -public class AttachementListPlugin extends WikiPlugin { - - private String host = ""; - - @Override - public WikiPage process(WikiPage wikiPage, WikiSession wikiSession) { - WikiPage newPage = null; - - try { - newPage = (WikiPage) wikiPage.clone(); - } catch (CloneNotSupportedException cl) { - System.err.println(cl); - } - - Set<String> attachements = newPage.getAttachementsSet(); - - if (attachements != null) { - String newContent = newPage.getPageContent(); - - newContent += "\n<hr />\n<h3>Attachements:</h3>\n"; - - for (String s : attachements) { - String href = host+newPage.getName() + "/" + s; - newContent += "<a href='"+href+"'>"+href + "</a><br>\n"; - } - - newPage.setPageContent(newContent); - } - - return newPage; - } - - @Override - public void next() { - // TODO Auto-generated method stub - - } - - @Override - public void init() { - host = getProperty("htmlTranslatorURL")+"wiki/"; - } - -} Added: trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/AttachmentListPlugin.java =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/AttachmentListPlugin.java 2005-08-23 19:26:34 UTC (rev 933) +++ trunk/forge/portal-extensions/forge-wiki/src/java/org/jboss/wiki/plugins/AttachmentListPlugin.java 2005-08-23 20:10:20 UTC (rev 934) @@ -0,0 +1,61 @@ +/************************************************** + * * + * JBoss Labs: Creating Professional Open Source * + * * + * Distributable under LGPL license. * + * See terms of license at gnu.org. * + * * + *************************************************/ + +package org.jboss.wiki.plugins; + +import java.util.Set; + +import org.jboss.wiki.WikiPage; +import org.jboss.wiki.WikiPlugin; +import org.jboss.wiki.WikiSession; + +public class AttachmentListPlugin extends WikiPlugin { + + private String host = ""; + + @Override + public WikiPage process(WikiPage wikiPage, WikiSession wikiSession) { + WikiPage newPage = null; + + try { + newPage = (WikiPage) wikiPage.clone(); + } catch (CloneNotSupportedException cl) { + System.err.println(cl); + } + + Set<String> attachements = newPage.getAttachementsSet(); + + if (attachements != null) { + String newContent = newPage.getPageContent(); + + newContent += "\n<hr />\n<h3>Attachments:</h3>\n"; + + for (String s : attachements) { + String href = host+newPage.getName() + "/" + s; + newContent += "<a href='"+href+"'>"+href + "</a><br>\n"; + } + + newPage.setPageContent(newContent); + } + + return newPage; + } + + @Override + public void next() { + // TODO Auto-generated method stub + + } + + @Override + public void init() { + host = getProperty("htmlTranslatorURL")+"wiki/"; + } + +} Modified: trunk/forge/portal-extensions/forge-wiki/src/web/WEB-INF/jsp/Wiki.jsp =================================================================== --- trunk/forge/portal-extensions/forge-wiki/src/web/WEB-INF/jsp/Wiki.jsp 2005-08-23 19:26:34 UTC (rev 933) +++ trunk/forge/portal-extensions/forge-wiki/src/web/WEB-INF/jsp/Wiki.jsp 2005-08-23 20:10:20 UTC (rev 934) @@ -25,8 +25,8 @@ if (logedIn.equals("true")) { - out.print("<a href='"+actionURL+"&action=Edit&page="+wikiPage+"'><img src=\"/file-access/default/members/jbosswiki/images/editButton.png\"</img></a>"+ - "<a href=\""+actionURL+"&action=Attach\">Attach file...</a>"); + out.print("<a href='"+actionURL+"&action=Edit&page="+wikiPage+"'><img alt=\"EDIT\" src=\"/file-access/default/members/jbosswiki/images/editButton.png\"</img></a>\n"+ + "<a href=\""+actionURL+"&action=Attach\"><img alt=\"ATTACH\" src=\"/file-access/default/members/jbosswiki/images/attachButton.png\"</img></a>"); } else { @@ -35,7 +35,7 @@ %> - <a href="<%=actionURL%>&action=Info&page=<%=wikiPage%>"><img src="/file-access/default/members/jbosswiki/images/historyButton.png"</img></a> + <a href="<%=actionURL%>&action=Info&page=<%=wikiPage%>"><img alt="HISTORY" src="/file-access/default/members/jbosswiki/images/historyButton.png"</img></a> <form method="post" action="<%=actionURL%>"> <input type="text" name="page" /> <input type="submit" value="GO" /> |