summaryrefslogtreecommitdiffstats
path: root/template/en/default
diff options
context:
space:
mode:
authorgerv%gerv.net <>2002-09-22 00:17:03 +0200
committergerv%gerv.net <>2002-09-22 00:17:03 +0200
commit66493d5e7e811c387faefd8f27edadcaf762c829 (patch)
tree20cf654b57eb3fdbcd225ab9396dc48bc1d3c243 /template/en/default
parenta29e0e0640faad00f8c1bf792b93260047f16956 (diff)
downloadbugzilla-66493d5e7e811c387faefd8f27edadcaf762c829.tar.gz
bugzilla-66493d5e7e811c387faefd8f27edadcaf762c829.tar.xz
Bug 108987 - Linkify script to use quoteUrls on texts provided by user. Patch by gerv; r=kiko.
Diffstat (limited to 'template/en/default')
-rw-r--r--template/en/default/pages/linked.html.tmpl43
-rw-r--r--template/en/default/pages/linkify.html.tmpl38
2 files changed, 81 insertions, 0 deletions
diff --git a/template/en/default/pages/linked.html.tmpl b/template/en/default/pages/linked.html.tmpl
new file mode 100644
index 000000000..8c854e2bd
--- /dev/null
+++ b/template/en/default/pages/linked.html.tmpl
@@ -0,0 +1,43 @@
+<!-- 1.0@bugzilla.org -->
+[%# The contents of this file are subject to the Mozilla Public
+ # License Version 1.1 (the "License"); you may not use this file
+ # except in compliance with the License. You may obtain a copy of
+ # the License at http://www.mozilla.org/MPL/
+ #
+ # Software distributed under the License is distributed on an "AS
+ # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
+ # implied. See the License for the specific language governing
+ # rights and limitations under the License.
+ #
+ # The Original Code is the Bugzilla Bug Tracking System.
+ #
+ # The Initial Developer of the Original Code is Netscape Communications
+ # Corporation. Portions created by Netscape are
+ # Copyright (C) 1998 Netscape Communications Corporation. All
+ # Rights Reserved.
+ #
+ # Contributor(s): Stefan Seifert <nine@detonation.org>
+ # Gervase Markham <gerv@gerv.net>
+ #%]
+
+[% INCLUDE global/header.html.tmpl title = "Your Linkified Text" %]
+
+<p>
+ Copy and paste the text below:
+</p>
+
+<p>
+ <tt>
+ [% quoteUrls(form.text) FILTER html %]
+ </tt>
+</p>
+
+<p>
+ It will end up looking like this:
+</p>
+
+<p>
+ [% quoteUrls(form.text) %]
+</p>
+
+[% INCLUDE global/footer.html.tmpl %]
diff --git a/template/en/default/pages/linkify.html.tmpl b/template/en/default/pages/linkify.html.tmpl
new file mode 100644
index 000000000..57f455dd2
--- /dev/null
+++ b/template/en/default/pages/linkify.html.tmpl
@@ -0,0 +1,38 @@
+<!-- 1.0@bugzilla.org -->
+[%# The contents of this file are subject to the Mozilla Public
+ # License Version 1.1 (the "License"); you may not use this file
+ # except in compliance with the License. You may obtain a copy of
+ # the License at http://www.mozilla.org/MPL/
+ #
+ # Software distributed under the License is distributed on an "AS
+ # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
+ # implied. See the License for the specific language governing
+ # rights and limitations under the License.
+ #
+ # The Original Code is the Bugzilla Bug Tracking System.
+ #
+ # The Initial Developer of the Original Code is Netscape Communications
+ # Corporation. Portions created by Netscape are
+ # Copyright (C) 1998 Netscape Communications Corporation. All
+ # Rights Reserved.
+ #
+ # Contributor(s): Stefan Seifert <nine@detonation.org>
+ # Gervase Markham <gerv@gerv.net>
+ #%]
+
+[% INCLUDE global/header.html.tmpl title = "Linkify Text" %]
+
+<p>
+ If you enter some text, this form will return it marked up like a
+ standard Bugzilla comment. That is, valid bug numbers, URLs, email addresses
+ and so on will be replaced with appropriate HTML links.
+</p>
+
+<form action="page.cgi" method="post">
+ <textarea cols="80" rows="20" name="text"></textarea>
+ <br>
+ <input type="hidden" name="id" value="linked.html">
+ <input value="Linkify" type="submit">
+</form>
+
+[% INCLUDE global/footer.html.tmpl %]