aurora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wfar...@apache.org
Subject svn commit: r1719736 - in /aurora/site: data/ data/mailing_lists.yml source/community.html.md source/community.html.md.erb
Date Sat, 12 Dec 2015 20:55:27 GMT
Author: wfarner
Date: Sat Dec 12 20:55:26 2015
New Revision: 1719736

URL: http://svn.apache.org/viewvc?rev=1719736&view=rev
Log:
Use a data template to de-duplicate mailing list html.

Added:
    aurora/site/data/
    aurora/site/data/mailing_lists.yml
    aurora/site/source/community.html.md.erb
      - copied, changed from r1719735, aurora/site/source/community.html.md
Removed:
    aurora/site/source/community.html.md

Added: aurora/site/data/mailing_lists.yml
URL: http://svn.apache.org/viewvc/aurora/site/data/mailing_lists.yml?rev=1719736&view=auto
==============================================================================
--- aurora/site/data/mailing_lists.yml (added)
+++ aurora/site/data/mailing_lists.yml Sat Dec 12 20:55:26 2015
@@ -0,0 +1,13 @@
+lists:
+  - address: user
+    title: Users
+  - address: announcements
+    title: Announcements
+  - address: dev
+    title: Developers
+  - address: issues
+    title: Issues
+  - address: commits
+    title: Code commits
+  - address: reviews
+    title: Code reviews

Copied: aurora/site/source/community.html.md.erb (from r1719735, aurora/site/source/community.html.md)
URL: http://svn.apache.org/viewvc/aurora/site/source/community.html.md.erb?p2=aurora/site/source/community.html.md.erb&p1=aurora/site/source/community.html.md&r1=1719735&r2=1719736&rev=1719736&view=diff
==============================================================================
--- aurora/site/source/community.html.md (original)
+++ aurora/site/source/community.html.md.erb Sat Dec 12 20:55:26 2015
@@ -13,40 +13,13 @@
     <h3>Stay in Touch</h3>
     <h4>Mailing lists</h4>
     <p>
-      <strong>Users</strong><br />
-      <a href="mailto:user-subscribe@aurora.apache.org">Subscribe</a> |
-      <a href="mailto:user-unsubscribe@aurora.apache.org">Unsubscribe</a> |
-      <a href="http://mail-archives.apache.org/mod_mbox/aurora-user/">Archive</a>
+    <% data.mailing_lists.lists.each do |list| %>
+      <strong><%= list.title %></strong><br />
+      <a href="mailto:<%= list.address %>-subscribe@aurora.apache.org">Subscribe</a>
|
+      <a href="mailto:<%= list.address %>-unsubscribe@aurora.apache.org">Unsubscribe</a>
|
+      <a href="http://mail-archives.apache.org/mod_mbox/aurora-<%= list.address %>/">Archive</a>
       <br />
-
-      <strong>Announcements</strong><br />
-      <a href="mailto:announcements-subscribe@aurora.apache.org">Subscribe</a>
|
-      <a href="mailto:announcements-unsubscribe@aurora.apache.org">Unsubscribe</a>
|
-      <a href="http://mail-archives.apache.org/mod_mbox/aurora-announcements/">Archive</a>
-      <br />
-
-      <strong>Developers</strong><br />
-      <a href="mailto:dev-subscribe@aurora.apache.org">Subscribe</a> |
-      <a href="mailto:dev-unsubscribe@aurora.apache.org">Unsubscribe</a> |
-      <a href="http://mail-archives.apache.org/mod_mbox/aurora-dev/">Archive</a>
-      <br />
-
-      <strong>Issues</strong><br />
-      <a href="mailto:issues-subscribe@aurora.apache.org">Subscribe</a> |
-      <a href="mailto:issues-unsubscribe@aurora.apache.org">Unsubscribe</a> |
-      <a href="http://mail-archives.apache.org/mod_mbox/aurora-issues/">Archive</a>
-      <br />
-
-      <strong>Code commits</strong><br />
-      <a href="mailto:commits-subscribe@aurora.apache.org">Subscribe</a> |
-      <a href="mailto:commits-unsubscribe@aurora.apache.org">Unsubscribe</a>
|
-      <a href="http://mail-archives.apache.org/mod_mbox/aurora-commits/">Archive</a>
-      <br />
-
-      <strong>Code reviews</strong><br />
-      <a href="mailto:reviews-subscribe@aurora.apache.org">Subscribe</a> |
-      <a href="mailto:reviews-unsubscribe@aurora.apache.org">Unsubscribe</a>
|
-      <a href="http://mail-archives.apache.org/mod_mbox/aurora-reviews/">Archive</a>
+    <% end %>
     </p>
 
     <h4 name="ircchannel">IRC</h4>



Mime
View raw message