Update cvs tarball URL (to bz2)
[privoxy.git] / templates / edit-actions-list
1 ##############################################################################
2 #
3 # File        :  $Source: /cvsroot/ijbswa//current/templates/edit-actions-list,v $
4 #
5 # Purpose     :  Template used to edit the actions file.
6
7 #
8 # Copyright   :  Written by and Copyright (C) 2001 the SourceForge
9 #                Privoxy team. http://www.privoxy.org/
10 #
11 #                Original Author: Copyright (C) 2001 Jonathan Foster
12 #                http://www.jon-foster.co.uk/
13 #
14 #                This program is free software; you can redistribute it 
15 #                and/or modify it under the terms of the GNU General
16 #                Public License as published by the Free Software
17 #                Foundation; either version 2 of the License, or (at
18 #                your option) any later version.
19 #
20 #                This program is distributed in the hope that it will
21 #                be useful, but WITHOUT ANY WARRANTY; without even the
22 #                implied warranty of MERCHANTABILITY or FITNESS FOR A
23 #                PARTICULAR PURPOSE.  See the GNU General Public
24 #                License for more details.
25 #
26 #                The GNU General Public License should be included with
27 #                this file.  If not, you can view it at
28 #                http://www.gnu.org/copyleft/gpl.html
29 #                or write to the Free Software Foundation, Inc., 59
30 #                Temple Place - Suite 330, Boston, MA  02111-1307, USA.
31 #
32 # Revisions   :
33 #    $Log: edit-actions-list,v $
34 #    Revision 1.26.2.2  2002/08/23 02:22:53  hal9
35 #    Fix a perl brain fart with <li> in comments.
36 #
37 #    Revision 1.26  2002/05/23 23:37:25  oes
38 #    Nit
39 #
40 #    Revision 1.25  2002/05/21 21:02:52  oes
41 #    Added more help links
42 #
43 #    Revision 1.24  2002/05/21 19:11:40  oes
44 #     - Added client-side JavaScript versions of edit and add URL forms
45 #     - Moved jump targets to before container table cell
46 #     - Let earu determine the jump target when removing URLs via JS
47 #     - Fixed broken help link
48 #
49 #    Revision 1.23  2002/05/12 15:53:10  jongfoster
50 #    Restoring CVS log information accidentally removed in
51 #    my previous commit.
52 #
53 #    Revision 1.22  2002/05/12 15:45:33  jongfoster
54 #    Applying [Patch 552094] New templates for edit-actions-list
55 #    This cleans up the templates by:
56 #    - Removing the (confusing) alternating color scheme.
57 #    - Making everything left-justified.
58 #
59 #    Revision 1.21  2002/05/03 22:58:15  jongfoster
60 #    Fixing link target in all URLs section
61 #
62 #    Revision 1.20  2002/04/26 12:57:18  oes
63 #     - Central "button" link style in cgi-style.css
64 #     - Help links now dynamic
65 #
66 #    Revision 1.19  2002/04/24 02:19:16  oes
67 #     - Show name of actions file being edited
68 #     - Show context sensitive help
69 #     - Add buttons for easy changing of defaults
70 #     - Cosmetics and clarifications
71 #
72 #    Revision 1.18  2002/04/18 19:21:09  jongfoster
73 #    Added code to detect "conventional" action files, that start
74 #    with a set of actions for all URLs (the pattern "/").
75 #    These are special-cased in the "edit-actions-list" CGI, so
76 #    that a special UI can be written for them.
77 #
78 #    Revision 1.17  2002/04/10 13:32:53  oes
79 #    Made templates modular
80 #
81 #    Revision 1.16  2002/04/08 17:08:14  oes
82 #    Cosmetic: make status in title lowercase
83 #
84 #    Revision 1.15  2002/04/05 16:01:32  oes
85 #    Correct HTML, external Stylesheets, eye candy, some fixes
86 #
87 #    Revision 1.14  2002/03/26 22:29:56  swa
88 #    we have a new homepage!
89 #
90 #    Revision 1.13  2002/03/24 15:23:33  jongfoster
91 #    Name changes
92 #
93 #    Revision 1.12  2002/03/24 11:01:06  swa
94 #    name change
95 #
96 #    Revision 1.11  2002/03/23 16:18:15  swa
97 #    renamed every reference to the old name with foobar.
98 #    fixed "application foobar application" tag, fixed
99 #    "the foobar" with "foobar". left junkbuster in cvs
100 #    comments and remarks to history untouched. should
101 #    make final rename easier.
102 #
103 #    Revision 1.10  2002/03/16 15:22:19  jongfoster
104 #    Moving 'alpha' warning to the end of the page
105 #
106 #    Revision 1.9  2002/03/05 00:24:51  jongfoster
107 #    Patch to always edit the current actions file.
108 #
109 #    Revision 1.8  2002/03/03 10:29:12  swa
110 #    point users to the right feedback forms,
111 #    not necessarily the developer list.
112 #
113 #    Revision 1.7  2002/01/23 00:26:45  jongfoster
114 #    Reducing length of URLs
115 #    Where encoded and unencoded versions of a string existed, removing
116 #    the unencoded one.
117 #
118 #    Revision 1.6  2002/01/17 21:33:00  jongfoster
119 #    Replacing all references to the URL of the config interface
120 #    with @default-cgi@
121 #
122 #    Revision 1.5  2002/01/17 21:21:05  jongfoster
123 #    DOS->Unix line endings
124 #
125 #    Revision 1.4  2001/11/13 00:58:18  jongfoster
126 #    New version of actions file editor templates
127 #
128 #
129 ##############################################################################
130 #
131 # Browser support for the CSS on this page:
132 #   MS Internet Explorer 5.5 - Yes - everything works.
133 #   Netscape 6.2             - Yes - everything works.
134 #   Netscape 4.75            - No  - CSS buttons look really bad, but they are
135 #                                    usable.  Everything else works.
136 #   Opera 5.12               - Yes - everything works.
137 #   MS Internet Explorer 4+  - Untested
138 #   MS IE 3.x, NS3.x         - Untested (Don't support CSS, so everything
139 #                              should work, but will look ugly).
140 #   Mozilla >=0.6            - Yes - everything works.
141 #
142 # All browsers should work, you just might not get the pretty CSS buttons.
143 #
144 # If your favorite browser isn't listed/tested, please test and add it.
145 #
146 #
147 #############################################################################
148 #
149 # Standard support:
150 #
151 # This file currently produces valid HTML 4.01 Strict.
152 #
153 # If you change it, please save the generated page from your web browser
154 # and then upload it to http://validator.w3.org/ for checking.
155 #
156 #############################################################################
157 #
158 # Available variables include:
159 #
160 # filename
161 # ver
162 #
163 #
164 #############################################################################
165 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
166 <html>
167
168 <head>
169   <meta http-equiv="Content-Style-Type" content="text/css">
170   <meta http-equiv="Content-Script-Type" content="text/javascript">
171   <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
172   <meta name="robots" content="noindex,nofollow">
173   <link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
174
175   <title>Privoxy: Edit actions file @f@.action</title>
176
177   <style type="text/css">
178
179 table.framed {
180   border: solid black 1px;
181   margin: 10px 0px;
182 }
183 tr.actions {
184   background-color: #eeffee;
185 }
186 tr.url {
187   background-color: #ddddff;
188 }
189 tr.adv {
190   background-color: #FFFFD0;
191 }
192 td.header {
193   font-weight: bold;
194   font-size: 110%;
195   padding: 10px 15px 2px 15px;
196 }
197 td.url {
198   font-weight: bold;
199 }
200 td.action {
201   font-weight: bold;
202   font-style: italic;
203   padding: 2px 30px;
204 }
205 td.nbr, td.buttons {
206   white-space: nowrap;
207 }
208 td.indentbuttons {
209   padding: 2px 30px;
210 }
211 </style>
212
213 <script type="text/javascript">
214 <!--
215
216 // Non-JS capable browsers will follow the link to a HTML "are you sure?" page
217 // JavaScript-capable browsers will call this function, which does a
218 // client-side prompt for speed.  It may kick off the delete directly.
219 // It always returns false to cancel following the link.
220 function rm_p(pattern,curtext)
221 {
222    if (window.confirm("Are you sure you want to delete this URL pattern?\nPattern is: "+unescape(curtext)))
223    { window.location.href="edit-actions-remove-url?f=@f@&v=@v@&p="+pattern; }
224    return false;
225 }
226
227 function e_p(pattern,curtext)
228 {
229    if ((newtext=window.prompt("Edit the pattern to your needs:", unescape(curtext))) != null)
230    {
231       if (newtext != "")
232       { window.location.href="edit-actions-url?f=@f@&v=@v@&p="+pattern+"&u="+escape(newtext); }
233       else
234       { window.location.href="edit-actions-remove-url?f=@f@&v=@v@&p="+pattern; }
235    }
236    return false;
237 }
238
239 function a_p(section)
240 {
241    if (((newtext=window.prompt("Enter the new pattern:", "")) != null ) && (newtext != ""))
242    { window.location.href="edit-actions-add-url?f=@f@&v=@v@&s="+section+"&u="+escape(newtext); }
243    return false;
244 }
245
246 //-->
247 </script>
248 </head>
249
250 <body>
251
252   <table cellpadding="20" cellspacing="10" border="0" width="100%">
253     <tr>
254       <td class="title">
255
256 #include mod-title
257
258       </td>
259     </tr>
260
261 <!-- @if-unstable-start -->
262 # This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
263     <tr>
264       <td class="warning">
265
266 #include mod-unstable-warning
267
268       </td>
269     </tr>
270 <!-- if-unstable-end@ -->
271
272     <tr>
273       <td class="info">
274         <h2>What is all this?</h2>
275         <p>
276          If you haven't already done so, it is <b>strongly recommended</b> that you at 
277          least skim <a href="@user-manual@@actions-help-prefix@ACTIONS-FILE">the
278          chapter on actions files</a> in the <a href="@user-manual@">user manual</a>
279          before making any changes. You will also find a comprehensive list of all available actions
280          there.
281         </p>
282          <!-- @if-all-urls-present-then@ -->
283         <p>
284          Please note that <b>the first section has special importance</b>. It sets the default actions for
285          all URLs. The resulting actions for a particular URL may differ from these defaults if that
286          URL matches again further down, but this section is largely responsible for your browsing
287          experience. Edit manually with great care, or choose from the predefined sets of actions.
288         </p>
289         <!-- @else-not-all-urls-present@@endif-all-urls-present@ -->
290         <!-- @if-default-action-then@ -->
291         <p>
292          This is the default action file. Updates for it are available from
293          <a href="http://www.privoxy.org/">Privoxy.org</a> on a regular basis. 
294          It is therefore <b>not recommended</b> that you add your private
295          rules here, since they will be lost if you install an update in the future.
296          Put your rules in a separate actions file, like <tt>user.action</tt> instead.
297         </p>
298         <!-- @else-not-default-action@@endif-default-action@ -->
299       </td>
300     </tr>
301
302     <tr>
303       <td class="box">
304         <div class="buttons">
305           <h2>Editing Actions File @f@.action</h2>
306           <!-- @if-all-urls-present-then@@else-not-all-urls-present@ -->
307           <p><a class="cmd" href="edit-actions-section-add?f=@f@&amp;v=@v@&amp;s=0">Insert new section at top</a></p>
308           <!-- @endif-all-urls-present@ -->
309         </div>
310       </td>
311     </tr>
312
313     <!-- @if-all-urls-present-then@ -->
314     <tr>
315       <td class="container"><a name="l@all-urls-s@"></a>
316         <table border="0" width="100%" cellspacing="2" cellpadding="3" class="framed">
317           <tr class="actions"><td class="header"><a href="@user-manual@@actions-help-prefix@ACTIONS">Actions</a>:</td></tr>
318           <tr class="actions">
319             <td class="indentbuttons">
320               <a href="eafu?f=@f@&amp;v=@v@&amp;s=@all-urls-s@">Edit</a>
321               @all-urls-buttons@
322             </td>
323           </tr>
324           <tr class="actions"><td class="action">@all-urls-actions@</td></tr>
325           <tr class="url"><td class="header"><a href="@user-manual@@actions-help-prefix@AF-PATTERNS">URL patterns</a>:</td></tr>
326           <tr class="url"><td class="indentbuttons">/ &nbsp; <i>(Matches all requests)</a></td></tr>
327           <tr class="adv"><td class="header">Advanced:</td></tr>
328           <tr class="adv">
329             <td class="indentbuttons">
330               <a href="easa?f=@f@&amp;v=@v@&amp;s=@all-urls-s@#l@all-urls-s-next@">Insert new section below</a>
331             </td>
332           </tr>
333         </table>
334       </td>
335     </tr>
336     <!-- @else-not-all-urls-present@@endif-all-urls-present@ -->
337
338 @sections@
339
340     <tr>
341       <td class="box">
342         <h2>More Privoxy:</h2>
343         <ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
344       </td>
345     </tr>
346
347     <tr>
348       <td class="info">
349
350 #include mod-support-and-service
351
352       </td>
353     </tr>
354
355 <!-- @if-have-help-info-start -->
356     <tr>
357       <td class="info">
358
359 #include mod-local-help
360
361       </td>
362     </tr>
363 <!-- if-have-help-info-end@ -->
364
365     <tr>
366       <td>
367         <small><small>Valid <a href="http://validator.w3.org/">HTML 4.01 Strict</a></small></small>
368       </td>
369     </tr>
370
371   </table>
372 </body>
373
374 </html>