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