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