2005-11-01 jrandom

* Added a few more css elements (thanks identiguy!)
This commit is contained in:
jrandom
2005-11-02 00:35:21 +00:00
committed by zzz
parent 2f36912ac0
commit a2d2b031f4
4 changed files with 75 additions and 22 deletions

View File

@ -148,28 +148,8 @@ for (Iterator iter = names.iterator(); iter.hasNext(); ) {
<option value="meta">Meta (hide everything but the metadata)</option>
</select><br />
<span class="b_postField">Include public names?</span> <input class="b_postNames" type="checkbox" name="includenames" value="true" /><br />
<span class="b_postField">Post content (in raw SML, no headers):</span><br />
<span class="b_postField">Post content (in raw <a href="smlref.jsp" target="_blank">SML</a>, no headers):</span><br />
<textarea class="b_postText" rows="6" cols="80" name="entrytext"><%=post.getText()%></textarea><br />
<span class="b_postField">SML cheatsheet:</span><br /><textarea class="b_postCheatsheet" rows="6" cols="80" readonly="true">
* newlines are newlines are newlines.
* all &lt; and &gt; are replaced with their &amp;symbol;
* [b][/b] = <b>bold</b>
* [i][/i] = <i>italics</i>
* [u][/u] = <i>underline</i>
* [cut]more inside[/cut] = [<a href="#">more inside...</a>]
* [img attachment="1"]alt[/img] = use attachment 1 as an image with 'alt' as the alt text
* [blog name="name" bloghash="base64hash"]description[/blog] = link to all posts in the blog
* [blog name="name" bloghash="base64hash" blogentry="1234"]description[/blog] = link to the specified post in the blog
* [blog name="name" bloghash="base64hash" blogtag="tag"]description[/blog] = link to all posts in the blog with the specified tag
* [blog name="name" blogtag="tag"]description[/blog] = link to all posts in all blogs with the specified tag
* [link schema="eep" location="http://forum.i2p"]text[/link] = offer a link to an external resource (accessible with the given schema)
* [archive name="name" description="they have good stuff" schema="eep" location="http://syndiemedia.i2p/archive/archive.txt"]foo![/archive] = offer an easy way to sync up with a new Syndie archive
SML headers are newline delimited key:value pairs. Example keys are:
* bgcolor = background color of the post (e.g. bgcolor:#ffccaa or bgcolor=red)
* bgimage = attachment number to place as the background image for the post (only shown if images are enabled) (e.g. bgimage=1)
* textfont = font to put most text into
</textarea><br />
<span class="b_postField">SML post headers:</span><br />
<textarea class="b_postHeaders" rows="3" cols="80" name="entryheaders"><%=post.getHeaders()%></textarea><br /><%
String s = request.getParameter(ArchiveViewerBean.PARAM_IN_REPLY_TO);

View File

@ -0,0 +1,33 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" import="java.util.*" %><%
request.setCharacterEncoding("UTF-8");
%><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 TRANSITIONAL//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title>SML Quick Reference</title>
<link href="style.jsp" rel="stylesheet" type="text/css" >
</head>
<body>
<h3>SML Quick Reference:</h3>
<ul>
<li>newlines are newlines are newlines.</li>
<li>all &lt; and &gt; are replaced with their &amp;symbol;</li>
<li>[b][/b] = &lt;b&gt;bold&lt;/b&gt;</li>
<li>[i][/i] = &lt;i&gt;italics&lt;/i&gt;</li>
<li>[u][/u] = &lt;i&gt;underline&lt;/i&gt;</li>
<li>[cut]more inside[/cut] = [&lt;a href="#"&gt;more inside...&lt;/a&gt;]</li>
<li>[quote][/quote] = Quoted text</li>
<li>[img attachment="1"]alt[/img] = use attachment 1 as an image with 'alt' as the alt text</li>
<li>[blog name="name" bloghash="base64hash"]description[/blog] = link to all posts in the blog</li>
<li>[blog name="name" bloghash="base64hash" blogentry="1234"]description[/blog] = link to the specified post in the blog</li>
<li>[blog name="name" bloghash="base64hash" blogtag="tag"]description[/blog] = link to all posts in the blog with the specified tag</li>
<li>[blog name="name" blogtag="tag"]description[/blog] = link to all posts in all blogs with the specified tag</li>
<li>[link schema="eep" location="http://forum.i2p"]text[/link] = offer a link to an external resource (accessible with the given schema)</li>
<li>[archive name="name" description="they have good stuff" schema="eep" location="http://syndiemedia.i2p/archive/archive.txt"]foo![/archive] = offer an easy way to sync up with a new Syndie archive</li>
</ul>
SML headers are newline delimited key:value pairs. Example keys are:
<ul>
<li>bgcolor = background color of the post (e.g. bgcolor:#ffccaa or bgcolor=red)</li>
<li>bgimage = attachment number to place as the background image for the post (only shown if images are enabled) (e.g. bgimage=1)</li>
<li>textfont = font to put most text into</li>
</ul>
</body>

View File

@ -55,6 +55,24 @@ body {
border: 0px;
border-style: none;
}
.s_detail_quote {
margin-left: 1em;
border-width: 1px;
border-color: #DBDBDB;
border-style: solid;
background-color: #E0E0E0;
}
.s_detail_italic {
font-style: italic;
}
.s_detail_bold {
font-style: normal;
font-weight: bold;
}
.s_detail_underline {
font-style: normal;
text-decoration: underline;
}
.s_detail_meta {
font-size: 10px;
text-align: right;
@ -89,6 +107,25 @@ body {
border: 0px;
border-style: none;
}
.s_summary_quote {
margin-left: 1em;
border-width: 1px;
border-color: #DBDBDB;
border-style: solid;
background-color: #E0E0E0;
}
.s_summary_italic {
font-style: italic;
}
.s_summary_bold {
font-style: normal;
font-weight: bold;
}
.s_summary_underline {
font-style: normal;
text-decoration: underline;
}
.s_summary_summDetail {
font-size: 10px;
}

View File

@ -1,4 +1,7 @@
$Id: history.txt,v 1.310 2005/10/30 00:47:55 dust Exp $
$Id: history.txt,v 1.311 2005/10/31 15:03:11 jrandom Exp $
2005-11-01 jrandom
* Added a few more css elements (thanks identiguy!)
2005-10-31 jrandom
* Fix for some syndie reply scenarios (thanks identiguy and CofE!)