Title: [187981] trunk/Websites/webkit.org
- Revision
- 187981
- Author
- benja...@webkit.org
- Date
- 2015-08-05 13:04:07 -0700 (Wed, 05 Aug 2015)
Log Message
Fix the twitter links on the status page
* status.html:
Modified Paths
Diff
Modified: trunk/Websites/webkit.org/ChangeLog (187980 => 187981)
--- trunk/Websites/webkit.org/ChangeLog 2015-08-05 19:57:24 UTC (rev 187980)
+++ trunk/Websites/webkit.org/ChangeLog 2015-08-05 20:04:07 UTC (rev 187981)
@@ -1,3 +1,9 @@
+2015-08-05 Benjamin Poulain <benja...@webkit.org>
+
+ Fix the twitter links on the status page
+
+ * status.html:
+
2015-08-03 Benjamin Poulain <benja...@webkit.org>
Prepare screenshots for a potential blog post
Modified: trunk/Websites/webkit.org/status.html (187980 => 187981)
--- trunk/Websites/webkit.org/status.html 2015-08-05 19:57:24 UTC (rev 187980)
+++ trunk/Websites/webkit.org/status.html 2015-08-05 20:04:07 UTC (rev 187981)
@@ -133,6 +133,12 @@
return container;
}
+ function makeTwitterLink(twitterHandle) {
+ if (twitterHandle[0] == "@")
+ twitterHandle = twitterHandle.substring(1);
+ return "https://twitter.com/" + twitterHandle;
+ }
+
var container = document.createElement('li');
container.className = "feature";
@@ -214,7 +220,7 @@
var li = document.createElement("li");
li.textContent = "Contact: ";
if (featureObject.contact.twitter) {
- li.appendChild(createLinkWithHeading("span", null, featureObject.contact.twitter, featureObject.contact.twitter));
+ li.appendChild(createLinkWithHeading("span", null, featureObject.contact.twitter, makeTwitterLink(featureObject.contact.twitter)));
}
if (featureObject.contact.email) {
if (featureObject.contact.twitter) {
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes