Sha256: 1bd7e76dec2559a4b71ea1f315f7a34693f6389c591d95d4e3c19c8af4e01f5d

Contents?: true

Size: 972 Bytes

Versions: 4

Compression:

Stored size: 972 Bytes

Contents

<%
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 %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
olddoc-1.8.0 lib/oldweb/_tail.rhtml
olddoc-1.7.1 lib/oldweb/_tail.rhtml
olddoc-1.7.0 lib/oldweb/_tail.rhtml
olddoc-1.6.0 lib/oldweb/_tail.rhtml