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