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