mod-support-and-service: Add a comment about the need to sync the content
[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-2009 the
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 ##############################################################################
33 #
34 # Browser support for the CSS on this page:
35 #   MS Internet Explorer 5.5 - Yes - everything works.
36 #   Netscape 6.2             - Yes - everything works.
37 #   Netscape 4.75            - No  - CSS buttons look really bad, but they are
38 #                                    usable.  Everything else works.
39 #   Opera 5.12               - Yes - everything works.
40 #   MS Internet Explorer 4+  - Untested
41 #   MS IE 3.x, NS3.x         - Untested (Don't support CSS, so everything
42 #                              should work, but will look ugly).
43 #   Mozilla >=0.6            - Yes - everything works.
44 #
45 # All browsers should work, you just might not get the pretty CSS buttons.
46 #
47 # If your favorite browser isn't listed/tested, please test and add it.
48 #
49 #
50 #############################################################################
51 #
52 # Standard support:
53 #
54 # This file currently produces valid HTML 4.01 Strict.
55 #
56 # If you change it, please save the generated page from your web browser
57 # and then upload it to http://validator.w3.org/ for checking.
58 #
59 #############################################################################
60 #
61 # Available variables include:
62 #
63 # filename
64 # ver
65 #
66 #
67 #############################################################################
68 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
69 <html>
70
71 <head>
72   <meta http-equiv="Content-Style-Type" content="text/css">
73   <meta http-equiv="Content-Script-Type" content="text/javascript">
74   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
75   <meta name="robots" content="noindex,nofollow">
76   <link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
77   <link rel="shortcut icon" href="@default-cgi@favicon.ico" type="image/x-icon">
78
79   <title>Privoxy: Edit actions file @actions-file@</title>
80
81   <style type="text/css">
82
83 table.framed {
84   border: solid black 1px;
85   margin: 10px 0px;
86 }
87 tr.actions {
88   background-color: #eeffee;
89 }
90 tr.url {
91   background-color: #ddddff;
92 }
93 tr.adv {
94   background-color: #FFFFD0;
95 }
96 td.header {
97   font-weight: bold;
98   font-size: 110%;
99   padding: 10px 15px 2px 15px;
100 }
101 td.url {
102   font-weight: bold;
103 }
104 td.action {
105   font-weight: bold;
106   font-style: italic;
107   padding: 2px 30px;
108 }
109 td.nbr, td.buttons {
110   white-space: nowrap;
111 }
112 td.indentbuttons {
113   padding: 2px 30px;
114 }
115 </style>
116
117 <script type="text/javascript">
118 <!--
119
120 // Non-JS capable browsers will follow the link to a HTML "are you sure?" page
121 // JavaScript-capable browsers will call this function, which does a
122 // client-side prompt for speed.  It may kick off the delete directly.
123 // It always returns false to cancel following the link.
124 function rm_p(link,pattern,curtext)
125 {
126    if (window.confirm("Are you sure you want to delete this URL pattern?\nPattern is: "+unescape(curtext)))
127    {
128       link.href="edit-actions-remove-url?f=@f@&v=@v@&p="+pattern;
129       return true;
130    }
131    return false;
132 }
133
134 function e_p(link,pattern,curtext)
135 {
136    if ((newtext=window.prompt("Edit the pattern to your needs:", unescape(curtext))) != null)
137    {
138       if (newtext != "")
139       { link.href="edit-actions-url?f=@f@&v=@v@&p="+pattern+"&u="+encodeURIComponent(newtext); }
140       else
141       { link.href="edit-actions-remove-url?f=@f@&v=@v@&p="+pattern; }
142       return true;
143    }
144    return false;
145 }
146
147 function a_p(link,section)
148 {
149    if (((newtext=window.prompt("Enter the new pattern:", "")) != null ) && (newtext != ""))
150    {
151       link.href="edit-actions-add-url?f=@f@&v=@v@&s="+section+"&u="+encodeURIComponent(newtext);
152       return true;
153    }
154    return false;
155 }
156 //-->
157 </script>
158 </head>
159
160 <body>
161
162   <table cellpadding="20" cellspacing="10" border="0" width="100%">
163     <tr>
164       <td class="title">
165
166 #include mod-title
167
168       </td>
169     </tr>
170
171 <!-- @if-unstable-start -->
172 # This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
173     <tr>
174       <td class="warning">
175
176 #include mod-unstable-warning
177
178       </td>
179     </tr>
180 <!-- if-unstable-end@ -->
181
182     <tr>
183       <td class="info">
184         <h2>What is all this?</h2>
185         <p>
186          If you haven't already done so, it is <b>strongly recommended</b> that you at
187          least skim <a href="@user-manual@@actions-help-prefix@ACTIONS-FILE">the
188          chapter on actions files</a> in the <a href="@user-manual@">User Manual</a>
189          before making any changes. You will also find a comprehensive list of
190          all available actions there, as well how the settings on this page
191          work.
192         </p>
193          <!-- @if-all-urls-present-then@ -->
194         <p>
195          Please note that <b>the first section has special importance</b>. It sets the default actions for
196          all URLs. The resulting actions for a particular URL may differ from these defaults if that
197          URL matches again further down, but this section is largely responsible for your browsing
198          experience. Edit manually with great care, or choose from the predefined sets of actions.
199         </p>
200         <!-- @else-not-all-urls-present@@endif-all-urls-present@ -->
201         <!-- @if-default-action-then@ -->
202         <p>
203          This is the default action file. Updates for it are available from
204          <a href="http://www.privoxy.org/">Privoxy.org</a> from time to time.
205          It is therefore <b>not recommended</b> that you add your private
206          rules here, since they will be lost if you install an update in the future.
207          Put your rules in a separate actions file, like <tt>user.action</tt> instead.
208         </p>
209         <!-- @else-not-default-action@@endif-default-action@ -->
210       </td>
211     </tr>
212
213     <tr>
214       <td class="box">
215         <div class="buttons">
216           <h2>Editing Actions File @actions-file@</h2>
217           <!-- @if-all-urls-present-then@@else-not-all-urls-present@ -->
218           <p><a class="cmd" href="edit-actions-section-add?f=@f@&amp;v=@v@&amp;s=0">Insert new section at top</a></p>
219           <!-- @endif-all-urls-present@ -->
220         </div>
221       </td>
222     </tr>
223
224     <!-- @if-all-urls-present-then@ -->
225     <tr>
226       <td class="container"><a name="l@all-urls-s@"></a>
227         <table border="0" width="100%" cellspacing="2" cellpadding="3" class="framed">
228           <tr class="actions"><td class="header"><a href="@user-manual@@actions-help-prefix@ACTIONS">Actions</a>:</td></tr>
229           <tr class="actions">
230             <td class="indentbuttons">
231               <a href="eafu?f=@f@&amp;v=@v@&amp;s=@all-urls-s@">Edit</a>
232               @all-urls-buttons@
233             </td>
234           </tr>
235           <tr class="actions"><td class="action">@all-urls-actions@</td></tr>
236           <tr class="url"><td class="header"><a href="@user-manual@@actions-help-prefix@AF-PATTERNS">URL patterns</a>:</td></tr>
237           <tr class="url"><td class="indentbuttons">/ &nbsp; <i>(Matches all requests)</a></td></tr>
238           <tr class="adv"><td class="header">Advanced:</td></tr>
239           <tr class="adv">
240             <td class="indentbuttons">
241               <a href="easa?f=@f@&amp;v=@v@&amp;s=@all-urls-s@#l@all-urls-s-next@">Insert new section below</a>
242             </td>
243           </tr>
244         </table>
245       </td>
246     </tr>
247     <!-- @else-not-all-urls-present@@endif-all-urls-present@ -->
248
249 @sections@
250
251     <tr>
252       <td class="box">
253         <h2>More Privoxy:</h2>
254         <ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
255       </td>
256     </tr>
257
258     <tr>
259       <td class="info">
260
261 #include mod-support-and-service
262
263       </td>
264     </tr>
265
266 <!-- @if-have-help-info-start -->
267     <tr>
268       <td class="info">
269
270 #include mod-local-help
271
272       </td>
273     </tr>
274 <!-- if-have-help-info-end@ -->
275
276   </table>
277 </body>
278
279 </html>