Author: jani
Date: Sun Apr 15 08:53:08 2018
New Revision: 1829196

URL: http://svn.apache.org/viewvc?rev=1829196&view=rev
Log:
add link to repo in project template


Modified:
    attic/site/docs/projects.html
    attic/site/docs/scripts/attic.js

Modified: attic/site/docs/projects.html
URL: 
http://svn.apache.org/viewvc/attic/site/docs/projects.html?rev=1829196&r1=1829195&r2=1829196&view=diff
==============================================================================
--- attic/site/docs/projects.html (original)
+++ attic/site/docs/projects.html Sun Apr 15 08:53:08 2018
@@ -52,6 +52,7 @@
             <tr><td>Issue Tracker</td><td id="issue"></td></tr>
             <tr><td>Wiki</td><td id="wiki"></td></tr>
             <tr><td>Board Reports</td><td id="board"></td></tr>
+            <tr><td>Source code</td><td id="source"></td></tr>
           </table>
           <p>As with any project in the Attic - if you should choose to fork 
ACE outside of Apache, 
              please let us know.</p>

Modified: attic/site/docs/scripts/attic.js
URL: 
http://svn.apache.org/viewvc/attic/site/docs/scripts/attic.js?rev=1829196&r1=1829195&r2=1829196&view=diff
==============================================================================
--- attic/site/docs/scripts/attic.js (original)
+++ attic/site/docs/scripts/attic.js Sun Apr 15 08:53:08 2018
@@ -648,11 +648,16 @@ function addSidebar()
    document.getElementById("projList").innerHTML = projText;
 }
 
+function addHref(ref, title)
+{
+  return "<a href=\"" + ref +"\">" + title + "</a>";
+}
+
 function addProject()
 {
    var jsonProj = jsonObj[parseInt(window.location.search.substr(1))];
    var title    = "Apache " + jsonProj["name"];
-   var website  = "<a href=\"" + jsonProj["website"] +"\">" + title + "</a>";
+   var website  = addHref(jsonProj["website"],title);
 
    document.title = title + " - Apache Attic";
    document.getElementById("header").innerHTML = "<h1>" + title + "</h1>";
@@ -666,20 +671,20 @@ function addProject()
    for (var key in jsonProj["maillists"])
    {
      if (mails.length > 0) { mails += " | "; }
-     mails += "<a href=\""  + jsonProj["maillists"][key] + "\">" + key + 
"</a>";
+     mails += addHref(jsonProj["maillists"][key],key);
    }
    document.getElementById("mails").innerHTML = mails;
 
    if (jsonProj["issues"] != "")
    {
       document.getElementById("issue").innerHTML =
-         "<a href=\"" + jsonProj["issues"] +"\">Issues</a>";
+         addHref(jsonProj["issues"],"Issues");
    }
 
    if (jsonProj["wiki"] != "")
    {
       document.getElementById("wiki").innerHTML =
-         "<a href=\"" + jsonProj["wiki"] +"\">Wiki</a>";
+         addHref(jsonProj["wiki"],"Wiki");
    }
 
    var board = jsonProj["name"]
@@ -690,8 +695,10 @@ function addProject()
    if (board != "")
    {
       document.getElementById("board").innerHTML =
-         "<a href=\"https://whimsy.apache.org/board/minutes/"; +
-         board +".html\">Minutes</a>";
+         addHref("https://whimsy.apache.org/board/minutes/"; +
+         board +".html","Minutes");
    }
+
+   document.getElementById("source").innerHTML = addHref(jsonProj["source 
code"], "Repo");
 }
 


Reply via email to