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