remove debian.fi
[mirror/dsa-puppet.git] / modules / roles / templates / syncproxy / syncproxy.debian.org-index.html.erb
index f1be122..4d16f1b 100644 (file)
@@ -1,13 +1,13 @@
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
 <HTML>
 <HEAD>
-   <TITLE>Welcome to <%= syncproxy_name %>!</TITLE>
+   <TITLE>Welcome to <%= @syncproxy_name %>!</TITLE>
 </HEAD>
 <BODY>
 
-<H1>Welcome to <%= syncproxy_name %>!</H1>
+<H1>Welcome to <%= @syncproxy_name %>!</H1>
 
-This is <%= syncproxy_name %>, a syncproxy run by and for the <a
+This is <%= @syncproxy_name %>, a syncproxy run by and for the <a
 href="https://www.debian.org/">Debian Project</a> to aid in mirroring
 our software.  Consult <a href="https://www.debian.org/mirror/">the
 mirrors section of the Debian website</a> for more information.
@@ -18,9 +18,9 @@ This syncproxy contains copies of the following archives.
 <ul>
 <%=
 lines = []
-%w{debian debian-debug debian-security}.each do |archive|
-  varname = 'has_srv_mirrors_' + archive.gsub(/[\/-]/,'_')
-  if has_variable?(varname) and (eval(varname)) == 'true'
+%w{debian debian-debug debian-ports debian-security}.each do |archive|
+  varname = ('has' + @mirror_basedir_prefix + archive).gsub(/[\/-]/,'_')
+  if has_variable?(varname) and (eval("@"+varname))
     lines << "<li>#{archive} [<a href=\"/#{archive}/project/trace/\">trace directory</a>]</li>"
   end
 end