about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-01-09 22:14:52 +0000
committerEric Wong <e@80x24.org>2016-01-09 22:14:52 +0000
commit91af89b0abf6d6a31189c556246c62eaeda6cc80 (patch)
tree11478a288fd68942b2af860085e6ecbc1c46802e
parent857a5062ff9c92dd078451742b9dee9b0bbbbcb0 (diff)
downloadolddoc-91af89b0abf6d6a31189c556246c62eaeda6cc80.tar.gz
The more archives, the better.
-rw-r--r--lib/oldweb/_tail.rhtml32
1 files changed, 17 insertions, 15 deletions
diff --git a/lib/oldweb/_tail.rhtml b/lib/oldweb/_tail.rhtml
index 0879572..fda210d 100644
--- a/lib/oldweb/_tail.rhtml
+++ b/lib/oldweb/_tail.rhtml
@@ -1,21 +1,23 @@
 <%
 public_email = @old_cfg['public_email']
 private_email = @old_cfg['private_email']
-ml_url = @old_cfg['ml_url']
-nntp_url = @old_cfg['nntp_url']
-
-if public_email && ml_url %><hr /><pre>
+archive_urls = Array(@old_cfg['ml_url']).concat(Array(@old_cfg['nntp_url']))
+if url = archive_urls.shift %><hr /><pre>
 mail archives: <a
-href="<%= ml_url %>"><%= ml_url %></a> mailto:<a
-href="mailto:<%= public_email %>"><%=
-public_email
-%></a>
-<% end
-if nntp_url %>NNTP archives: <a
-href="<%= nntp_url %>"><%= nntp_url %></a>
+href="<%= url %>"><%= url %></a><%
+  archive_urls.each do |u| %>
+        <a
+href="<%= u %>"><%= u %></a> <%
+  end # archive_urls.each
+  if private_email || public_email %>
 <%
-end
-if private_email
-%>private mail: <a
+    if public_email %>public: <a
+href="mailto:<%= public_email %>"><%= public_email %></a><%
+    end
+    if private_email || public_email %> / <% end
+    if private_email %>private: <a
 href="mailto:<%= private_email %>"><%= private_email %></a><%
-end %></pre>
+    end
+  end
+end
+%></pre>