Attempt to create valid html by not putting a link tag in the download page
Sebastian Hahn

Sebastian Hahn commited on 2009-01-07 17:35:22
Zeige 2 geänderte Dateien mit 2 Einfügungen und 3 Löschungen.


This is a very hackish way of doing this, and I would love to be shown that it's all wrong and there's a better way.
... ...
@@ -2,7 +2,7 @@
2 2
 # Revision: $Revision$
3 3
 # Translation-Priority: 1-high
4 4
 
5
-#include "head.wmi" TITLE="Tor: Download" charset="UTF-8"
5
+#include "head.wmi" TITLE="Tor: Download" CHARSET="UTF-8" ANNOUNCE_RSS="yes"
6 6
 
7 7
 <div class="main-column">
8 8
 
... ...
@@ -149,8 +149,6 @@ mailing list</a> (you will be asked to confirm via email). You can also
149 149
 the list's RSS feed</a>.
150 150
 </p>
151 151
 
152
-<link rel="alternate" title="Tor Project OR-announce" href="http://rss.gmane.org/gmane.network.onion-routing.announce" type="application/rss+xml" />
153
-
154 152
 <form action="http://freehaven.net/cgi-bin/majordomo.cgi">
155 153
 <input type="hidden" name="mlist" value="or-announce">
156 154
 <input type="hidden" name="subscribe" value="1">
... ...
@@ -19,6 +19,7 @@
19 19
   <ifeq "$(STYLESHEET)" "" "<link rel="stylesheet" type="text/css" href="$(DOCROOT)/stylesheet-ltr.css" />">
20 20
   <link rel="shortcut icon" type="image/x-icon" href="$(DOCROOT)/favicon.ico" />
21 21
   <ifneq "$(REDIRECT)" "" "<meta http-equiv="refresh" content="0;url=$(DOCROOT)/$(REDIRECT)" />">
22
+  <ifeq "$(ANNOUNCE_RSS)" "yes" "<link rel="alternate" title="Tor Project OR-announce" href="http://rss.gmane.org/gmane.network.onion-routing.announce" type="application/rss+xml" />">
22 23
 </head>
23 24
 
24 25
 <body>
25 26