2006-01-18 cervantes

* Add title attributes to all external links in Syndie, so we can rollover
      and quickly see if it's worth clicking on.
    * Fixed a minor compiler warning.
This commit is contained in:
cervantes
2006-01-18 06:37:52 +00:00
committed by zzz
parent cd2609b34a
commit b727d868fb
6 changed files with 14 additions and 5 deletions

View File

@@ -232,7 +232,8 @@ public class BlogPostInfoRenderer extends EventReceiverImpl {
out.append("schema=").append(HTMLRenderer.sanitizeURL(l.schema)).append("&"); out.append("schema=").append(HTMLRenderer.sanitizeURL(l.schema)).append("&");
if (l.location != null) if (l.location != null)
out.append("location=").append(HTMLRenderer.sanitizeURL(l.location)).append("&"); out.append("location=").append(HTMLRenderer.sanitizeURL(l.location)).append("&");
out.append("\">").append(HTMLRenderer.sanitizeString(l.location, 30)).append(" ("); out.append("\" title=\"Goto ").append(HTMLRenderer.sanitizeTagParam(l.location)).append("\">");
out.append(HTMLRenderer.sanitizeString(l.location, 30)).append(" (");
out.append(HTMLRenderer.sanitizeString(l.schema, 6)).append(")</a>"); out.append(HTMLRenderer.sanitizeString(l.schema, 6)).append(")</a>");
out.append("</li>\n"); out.append("</li>\n");

View File

@@ -406,6 +406,7 @@ public class HTMLRenderer extends EventReceiverImpl {
_bodyBuffer.append(sanitizeURL(schema)).append("&location="); _bodyBuffer.append(sanitizeURL(schema)).append("&location=");
_bodyBuffer.append(sanitizeURL(location)).append("&description="); _bodyBuffer.append(sanitizeURL(location)).append("&description=");
_bodyBuffer.append(sanitizeURL(text)); _bodyBuffer.append(sanitizeURL(text));
_bodyBuffer.append("\" title=\"Goto ").append(sanitizeTagParam(location));
_bodyBuffer.append("\">"). _bodyBuffer.append("\">").
append(sanitizeString(text)). append(sanitizeString(text)).
append("</a>"); append("</a>");
@@ -593,6 +594,7 @@ public class HTMLRenderer extends EventReceiverImpl {
_postBodyBuffer.append("schema=").append(sanitizeURL(l.schema)).append('&'); _postBodyBuffer.append("schema=").append(sanitizeURL(l.schema)).append('&');
if (l.location != null) if (l.location != null)
_postBodyBuffer.append("location=").append(sanitizeURL(l.location)).append('&'); _postBodyBuffer.append("location=").append(sanitizeURL(l.location)).append('&');
_postBodyBuffer.append("\" title=\"Goto ").append(sanitizeTagParam(l.location));
_postBodyBuffer.append("\">").append(sanitizeString(l.location, 30)); _postBodyBuffer.append("\">").append(sanitizeString(l.location, 30));
_postBodyBuffer.append(getSpan("summDetailExternalNet")).append(" (").append(sanitizeString(l.schema)).append(")</span></a> "); _postBodyBuffer.append(getSpan("summDetailExternalNet")).append(" (").append(sanitizeString(l.schema)).append(")</span></a> ");
} }

View File

@@ -428,6 +428,7 @@ public class ThreadedHTMLRenderer extends HTMLRenderer {
_postBodyBuffer.append("schema=").append(sanitizeURL(l.schema)).append('&'); _postBodyBuffer.append("schema=").append(sanitizeURL(l.schema)).append('&');
if (l.location != null) if (l.location != null)
_postBodyBuffer.append("location=").append(sanitizeURL(l.location)).append('&'); _postBodyBuffer.append("location=").append(sanitizeURL(l.location)).append('&');
_postBodyBuffer.append("\" title=\"Goto ").append(sanitizeTagParam(l.location));
_postBodyBuffer.append("\">").append(sanitizeString(l.location, 30)); _postBodyBuffer.append("\">").append(sanitizeString(l.location, 30));
_postBodyBuffer.append(getSpan("summDetailExternalNet")).append(" (").append(sanitizeString(l.schema)).append(")</span></a> "); _postBodyBuffer.append(getSpan("summDetailExternalNet")).append(" (").append(sanitizeString(l.schema)).append(")</span></a> ");
} }

View File

@@ -603,8 +603,8 @@ public class ViewBlogServlet extends BaseServlet {
} finally { } finally {
try { in.close(); } catch (IOException ioe) {} try { in.close(); } catch (IOException ioe) {}
try { out.close(); } catch (IOException ioe) {} try { out.close(); } catch (IOException ioe) {}
return true;
} }
return true;
} }
} }
resp.setContentType("img.png"); resp.setContentType("img.png");

View File

@@ -1,4 +1,9 @@
$Id: history.txt,v 1.390 2006/01/16 17:00:04 cervantes Exp $ $Id: history.txt,v 1.391 2006/01/17 17:56:15 jrandom Exp $
2006-01-18 cervantes
* Add title attributes to all external links in Syndie, so we can rollover
and quickly see if it's worth clicking on.
* Fixed a minor compiler warning.
2006-01-17 jrandom 2006-01-17 jrandom
* First pass of the new tunnel creation crypto, specified in the new * First pass of the new tunnel creation crypto, specified in the new

View File

@@ -15,9 +15,9 @@ import net.i2p.CoreVersion;
* *
*/ */
public class RouterVersion { public class RouterVersion {
public final static String ID = "$Revision: 1.334 $ $Date: 2006/01/14 15:14:47 $"; public final static String ID = "$Revision: 1.335 $ $Date: 2006/01/17 17:56:16 $";
public final static String VERSION = "0.6.1.9"; public final static String VERSION = "0.6.1.9";
public final static long BUILD = 3; public final static long BUILD = 4;
public static void main(String args[]) { public static void main(String args[]) {
System.out.println("I2P Router version: " + VERSION + "-" + BUILD); System.out.println("I2P Router version: " + VERSION + "-" + BUILD);
System.out.println("Router ID: " + RouterVersion.ID); System.out.println("Router ID: " + RouterVersion.ID);