Skip to content

Commit

Permalink
Apply Yaakov's stylish templates over the dreary ones we used to have.
Browse files Browse the repository at this point in the history
  • Loading branch information
rcaputo committed Oct 30, 2003
1 parent 7c0eba6 commit 5e17324
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 63 deletions.
74 changes: 37 additions & 37 deletions templates/paste-form.html
Original file line number Diff line number Diff line change
@@ -1,50 +1,50 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>[% $bot_name %] main menu</title>
<title>pasting to [% $bot_name %]</title>
</head>
<body>
<h1>No paste!</h1>
<p>
You will be pasting to [% $bot_name %].
</p>
<p>
This is an experiment in automated non-pasting. Content that is
posted in this form will be announced on the channel of your
choice along with an URL where people can retrieve it.
</p>
<p>
<table>
<tr>
<td>
<!-- Please copy this image to a host of your own and change this tag, thanks! -->
<img src="http://hydrogen.netlab.com/nopaste.gif" alt="POE Paste with lovely alien head...">
</td>
<td align="left">
<h1><font face="courier new">No paste!</font></h1>
<font face="courier new" size="-1">
1. Select the channel for the URL announcment.<br>
2. Supply a nick for the announcement.<br>
3. Supply an summary of the paste for the announcement<br>
4. <b>Paste!</b><br>
5. Submit the form with the Paste it! button.<br>
</font>
</td>
</tr>
</table>
<form method='post' action='paste' enctype='application/x-www-from-urlencoded' name="pasteForm">
<p>
Channel: <select name='channel'>[% $channels %]</select>
&nbsp; &nbsp;
Your nick (optional):
<input type='text' name='nick' size='25' maxlength='25'>
</p>
<p>
Summary (optional):
<input type='text' name='summary' size='80' maxlength='160'>
</p>
<p>
Stuff to paste:
<textarea name='paste' rows=25 cols=75 style='width:100%' wrap='none'></textarea>
</p>
<p>
<input type='submit' name='Paste it' value='Paste it'>
&nbsp; &nbsp;
<input type='reset' name='Clear form' value='Clear form'>
</p>
<p>
[% $footer %]
<font face="courier new" size="-1"><br><br>
1. channel: <select name='channel'>[% $channels %]</select>&nbsp; &nbsp;
2. your nick: <input type='text' name='nick' size='25' maxlength='25'><br><br>
3. summary: <input type='text' name='summary' size='80' maxlength='160'><br><br>
4. paste: <textarea name='paste' rows=25 cols=75 style='width:100%'></textarea><br><br>
5. <input type='submit' name='Paste it' value='Paste it'><input type='reset' name='Clear form' value='Clear form'>
</font>
</form><br>
<div align="right">
<a href="http://validator.w3.org/check/referer"><img border="0" src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01!" height="31" width="88"></a><br><br>
</div>
<div>
[% $footer %]
</div>
<!-- $Id$ -->
</p>
</form>

<!-- Automatically put the clipboard contents into the paste field. -->
<script language="jscript">

<!-- Automatically put the clipboard contents into the paste field and select it.-->
<script language="jscript" type="">
onload=function () {
try {
document.pasteForm.paste.value=clipboardData.getData("Text") || "";
document.pasteForm.paste.select();
}
catch (oErr) {}
}
Expand Down
67 changes: 41 additions & 26 deletions templates/paste-lookup.html
Original file line number Diff line number Diff line change
@@ -1,34 +1,49 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>[% $bot_name %] paste number [% $paste_id %]...</title>
<link rel="stylesheet" type="text/css" href="style">
<title>[% $bot_name %] paste from [% $nick %]...</title>
<link rel="stylesheet" type="text/css" href="style">
</head>
<body>
<p>
<body bgcolor="#FFFFFF">
<table>
<tr>
<td>
<!-- Please copy this image to a host of your own and change this tag, thanks! -->
<img src="http://hydrogen.netlab.com/nopaste.gif" alt="POE Paste with lovely alien head...">
</td>
<td>
<div style="font-family:courier new">
<h1>No paste!</h1>
<b>from [% $nick %]</b><br>
<b>[% $summary %]</b><br><br>
</div>
<font face="courier new" size="-1">
<a href="#format">format options below</a>
</font>
</td>
</tr>
</table>
<div>
[% $paste %]
</div>
<div style="font-family:courier new; font-size=x-small">
<a name="format"></a>
<form method='get' action='[% $paste_id %]'>
<input type='checkbox' name='tidy' [% $tidy %]> Tidied up a bit.
<input type='checkbox' name='hl' [% $hl %]> Highlighted.
<input type='checkbox' name='ln' [% $ln %]> With line numbers.
<br>
<input type='checkbox' name='tx' [% $tx %]> As plain text (overrides all others).
<br>
<input type='checkbox' name='wr' [% $wr %]> Wrapped (disables pre-formatted text wrapper).
<br>
<input type='submit' name='submit' value='Reformat it'>
<input type='checkbox' name='tx' [% $tx %]> plain text (suitable for cut and paste, <font color="red">overrides all</font>)<br><br>
<input type='checkbox' name='wr' [% $wr %]> word wrap (disables pre-formatted text wrapper)<br>
<input type='checkbox' name='ln' [% $ln %]> line numbers<br><br>
perl stuff: (might be helpful for others but not perfect)<br>
<input type='checkbox' name='tidy' [% $tidy %]> tidy up a bit<br>
<input type='checkbox' name='hl' [% $hl %]> syntax highlight<br><br>
<input type='submit' name='submit' value='Format it!'>
</form>
</p>
<p>
From: [% $nick %]
<br>
Summary: [% $summary %]
</p>
<p>
[% $paste %]
</p>
<p>
[% $footer %]
<!-- $Id$ -->
</p>
</div>
<div align="right">
<a href="http://validator.w3.org/check/referer"><img border="0" src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01!" height="31" width="88"></a><br><br>
</div>
<div>
[% $footer %]
<!-- $Id$ -->
</div>
</body>
</html>

0 comments on commit 5e17324

Please sign in to comment.