Only show "Local support" on templates conditionally:
[privoxy.git] / templates / show-version
1 ##########################################################
2 #
3 # Show-Status-CGI Output template for junkbuster 2.9.x
4 #
5 # USING HTML TEMPLATES:
6 # ---------------------
7 #
8 # Template files are written win plain HTML, with a few
9 # additions:
10
11 # - Lines that start with a '#' character like this one
12 #   are ignored
13 #
14 # - Each item in the below list of exported symbols will
15 #   be replaced by dynamically generated text, if they
16 #   are enclosed in '@'-characters. E.g. The string @version@
17 #   will be replaced by the version number of Junkbuster.
18 #
19 # - One special application of this is to make whole blocks
20 #   of the HTML template disappear if the condition <name>
21 #   is not given. Simply enclose the block between the two
22 #   strings @if-<name>start and if-<name>-end@. The strings
23 #   should be placed in HTML comments (<!-- -->), so the
24 #   html structure won't be messed when the magic happens.
25 #   
26 # USABLE SYMBOLS IN THIS TEMPLATE:
27 # --------------------------------
28 #
29 #  my-ip-addr:
30 #    The IP-address that the client used to reach this proxy
31 #  my-hostname:
32 #    The hostname associated with my-ip-addr
33 #  admin-address:
34 #    The email address of the pxoxy's administrator, as configured
35 #    in the config file
36 #  default-cgi:
37 #    The URL for the "main menu" builtin CGI of this proxy
38 #  menu:
39 #    List of <li> elements linking to the other available CGIs
40 #  version:
41 #    The version number of the proxy software
42 #  code-status:
43 #    The development status of the proxy software: "alpha", "beta",
44 #    or "stable".
45 #  homepage:
46 #    The URL of the SourceForge ijbswa project, who maintains this
47 #    software.
48 #
49 #  redirect-url:
50 #    The URL to a script that will redirect to the junkbuster
51 #    documentation for a given item  
52 #  invocation:
53 #    The command line with whitch junkbuster was invoked
54 #  options:
55 #    The options read from the configfile, linked to their
56 #    explanations, plus warnings if parsing acl or forward
57 #    statements produced errors.
58 #  sourceversions:
59 #    A HTML-formatted list of the individual source file cvs versions
60 #  defines:
61 #    A HTML-formatted list of all conditional #defines used when
62 #    junkbuster was compiled
63 #
64 #  
65 # CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
66 # ------------------------------------------------------------------
67 #
68 #  unstable:
69 #    This is an alpha or beta release of the proxy software
70 #  have-adminaddr-info:
71 #    An e-mail address for the local Junkbuster adminstrator has
72 #    been specified and is available through the "admin-address"
73 #    symbol
74 #  have-proxy-info:
75 #    A URL for online documentation about this proxy has been
76 #    specified and is available through the "proxy-info-url"
77 #    symbol
78 #  have-help-info:
79 #    If either have-proxy-info is true or have-adminaddr-info is
80 #    true, have-help-info is true.  Used to conditionally include
81 #    a grey box for any and all help info.
82 #  sourceversions
83 #    The versions.
84 <html>
85
86 <head>
87   <title>Junkbuster@@my-hostname@: Detailed proxy version information</title>
88   <style type="text/css">
89     BODY, P, H1, H2, UL, OL, LI { font-family: Helvetica, Helv, Arial, Sans-Serif, sans-serif }
90   </style>
91 </head>
92
93 <body bgcolor="#ffffff">
94
95   <table cellpadding=20 cellspacing=10 border=0 width=100%>
96     <tr>
97       <td bgcolor=#dddddd>
98         <p><font size=+2><b>This is the Internet J</b></font><font size=+1><b>UNK<i></font><font color="red">BUSTER</font></i></b>
99           <font size=+2><b>@version@ on @my-hostname@ (@my-ip-address@), port @my-port@</b></font></p>
100       </td>
101     </tr>
102
103 <!-- @if-unstable-start -->
104 # This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
105     <tr>
106       <td bgcolor=#ffdddd>
107         <p><b>Please note that this <font color=red>@code-status@</font> release
108           of the proxy software is not intended for production systems!
109           <br>Use at your own risk. See the <a href="http://www.gnu.org/copyleft/gpl.html">license</a> for details.</b>
110         </p>
111
112         <p>Feel free to <a href=mailto:ijbswa-developers@lists.sourceforge.net>mail the developers</a>
113           with any problems you encounter.
114         </p>
115       </td>
116     </tr>
117 <!-- if-unstable-end@ -->
118
119     <tr>
120       <td bgcolor=#eeeeee>
121         <h2>Source code versions:</h2>
122         <p><i>(Note: This information is only relevent if you checked out JunkBuster from CVS
123            and compiled it yourself.  If you downloaded a binary, .exe, RPM, or a .tgz file, 
124            then when you ask for support just mention the version number <b>@version@</b> 
125            and the type of download you got.)</i></p>
126         <p>&nbsp;</p>
127         <blockquote><pre>@sourceversions@</pre></blockquote>
128       </td>
129     </tr>
130
131     <tr>
132       <td bgcolor=#dddddd>
133         <h2>More Junkbuster:</h2>
134         <ul>@menu@</ul>
135       </td>
136     </tr>
137
138 <!-- @if-have-help-info-start -->
139     <tr>
140       <td bgcolor=#dddddd>
141         <h2>Local Junkbuster support:</h2>
142
143 <!-- @if-have-proxy-info-start -->
144         <p>You can consult the <a href="@proxy-info-url@">online documentation</a> for more information about this Junkbuster installation.         
145 <!-- if-have-proxy-info-end@ -->
146
147 <!-- @if-have-adminaddr-info-start -->
148         <p>Address e-mail questions about this service to
149           <a href=mailto:@admin-address@><code>@admin-address@</code></a>,
150           who will be glad to help you.
151 <!-- if-have-adminaddr-info-end@ -->
152
153         </p>
154       </td>
155     </tr>
156 <!-- if-have-help-info-end@ -->
157
158   </table>
159
160 </body>
161 </html>