lib/oldweb/_tail.rhtml in olddoc-1.2.0 vs lib/oldweb/_tail.rhtml in olddoc-1.3.0
- old
+ new
@@ -1,9 +1,10 @@
<%
public_email = @old_cfg['public_email']
private_email = @old_cfg['private_email']
-archive_urls = Array(@old_cfg['ml_url']).concat(Array(@old_cfg['nntp_url']))
+source_code = Array(@old_cfg['source_code']).dup
+archive_urls = Array(@old_cfg['ml_url']) + Array(@old_cfg['nntp_url'])
if url = archive_urls.shift %><hr /><pre>
mail archives: <a
href="<%= url %>"><%= url %></a><%
archive_urls.each do |u| %>
<a
@@ -17,7 +18,12 @@
if private_email && public_email %> / <% end
if private_email %>private: <a
href="mailto:<%= private_email %>"><%= private_email %></a><%
end
end
+
+if url_or_cmd = source_code.shift
+%>
+source code: <%= url_or_cmd %>
+<% source_code.each do |x| %><%= "\t#{x}" %><% end
end
-%></pre>
+%></pre><% end %>