1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
| | <%
public_email = @old_cfg['public_email']
private_email = @old_cfg['private_email']
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
href="<%= u %>"><%= u %></a> <%
end # archive_urls.each
if private_email || public_email %>
<%
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
end
if url_or_cmd = source_code.shift
url_or_cmd = url_or_cmd.sub(%r{\b(https?://\S+)}, "<a\nhref='\\1'>\\1</a>")
%>
source code: <%= url_or_cmd %>
<% source_code.each do |x| %><%=
%Q{\t#{x.sub(%r{\b(https?://\S+)}, %Q{<a\nhref='\\1'>\\1</a>})}}
%><% end
end
%></pre><% end %>
|