Title: [157638] trunk/Websites/webkit.org
Revision
157638
Author
[email protected]
Date
2013-10-18 10:03:39 -0700 (Fri, 18 Oct 2013)

Log Message

Cleanup webkit.org/team.html
https://bugs.webkit.org/show_bug.cgi?id=123022

Patch by Tibor Meszaros <[email protected]> on 2013-10-18
Reviewed by Alexey Proskuryakov.

Removed the annoteWithWikiData function, because data it tries to fetch does not exists.

* team.html:

Modified Paths

Diff

Modified: trunk/Websites/webkit.org/ChangeLog (157637 => 157638)


--- trunk/Websites/webkit.org/ChangeLog	2013-10-18 16:55:42 UTC (rev 157637)
+++ trunk/Websites/webkit.org/ChangeLog	2013-10-18 17:03:39 UTC (rev 157638)
@@ -1,3 +1,14 @@
+2013-10-18  Tibor Meszaros  <[email protected]>
+
+        Cleanup webkit.org/team.html
+        https://bugs.webkit.org/show_bug.cgi?id=123022
+
+        Reviewed by Alexey Proskuryakov.
+
+        Removed the annoteWithWikiData function, because data it tries to fetch does not exists.
+
+        * team.html:
+
 2013-10-16  Geoffrey Garen  <[email protected]>
 
         Publish SunSpider 1.0.2

Modified: trunk/Websites/webkit.org/team.html (157637 => 157638)


--- trunk/Websites/webkit.org/team.html	2013-10-18 16:55:42 UTC (rev 157637)
+++ trunk/Websites/webkit.org/team.html	2013-10-18 17:03:39 UTC (rev 157638)
@@ -157,58 +157,6 @@
     return null;
 }
 
-function annotateWithWikiData() {
-    function annotateForContributor(contributor) {
-        var listItem = findListChildForContributor(contributor);
-        if (!listItem) {
-            var listElement = document.getElementById(contributor.kind + 's');
-            var listItem = document.createElement('li');
-            listElement.appendChild(listItem);
-            listItem.style.backgroundColor = 'red';
-            populateContributorListItem(listItem, contributor);
-        } else {
-            var affiliationContainer = listItem.querySelector('.affiliation');
-            var affiliation = formatAffiliation(contributor);
-            if (affiliation && (!affiliationContainer || affiliationContainer.textContent != affiliation)) {
-                addText(listItem, ' ');
-                addWrappedText(listItem, 'em', {'style': 'background-color:red'}, affiliation);
-            }
-        }
-    }
-
-    var webkitTeamWikiUrl = 'http://trac.webkit.org/wiki/WebKit%20Team';
-    var xhr = new XMLHttpRequest();
-    xhr._onload_ = function () {
-        if (this.status !== 200)
-            return this.onerror();
-
-        var lines = this.responseText.split('\n');
-        // Match lines like * '''Ryosuke Niwa''' (rniwa) ''Google''
-        var teamWikiContributorEntryPattern = /^\s+\*\s+'''([^']+)'''\s*(\(([^']+)\)\s*)?(''([^']+)'')?\s*$/;
-        for (var i = 0; i < lines.length; i++) {
-            var match = lines[i].match(/\=\s+(Reviewer|Committer|Contributor)s\s+=/i);
-            if (match) {
-                var currentKind = match[1].toLowerCase();
-                continue;
-            }
-
-            // Strip special HTML characters
-            match = lines[i].replace(/[{}<>"%;&+/]/g, '').match(teamWikiContributorEntryPattern);
-            if (currentKind && match) {
-                annotateForContributor({
-                    kind: currentKind,
-                    name: match[1],
-                    nicks: match[3] ? match[3].split(/,\s*/) : null,
-                    affiliation: match[5]
-                });
-            }
-        }
-    }
-    xhr._onerror_ = function () { alert('Could not obtain http://trac.webkit.org/wiki/WebKit%20Team'); };
-    xhr.open('GET', webkitTeamWikiUrl + '?format=txt');
-    xhr.send();
-}
-
 var xhr = new XMLHttpRequest();
 xhr._onload_ = function () {
     if (this.status !== 200)
@@ -218,9 +166,6 @@
     populateContributorList(contributors, 'reviewer');
     populateContributorList(contributors, 'committer');
     populateContributorList(contributors, 'contributor');
-
-    if (location.search.indexOf('annotate') >= 0)
-        annotateWithWikiData();
 };
 xhr._onerror_ = function () { document.getElementById('container').textContent = 'Could not obtain contributors.json'; };
 xhr.open('GET', svnTrunkUrl + 'Tools/Scripts/webkitpy/common/config/contributors.json');
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to