Adding updates link

This commit is contained in:
Shan Carter
2017-02-08 11:54:24 -08:00
parent 8162b8ea2d
commit 174edd5973
3 changed files with 4 additions and 5 deletions
+1 -2
View File
@@ -69,9 +69,8 @@ export default function(dom, data) {
}
div.innerHTML = oldHtml + div.innerHTML;
if (data.githubCompareUpdatesUrl) {
div.innerHTML = `<h3>Updates</h3><p><a href="${data.githubCompareUpdatesUrl}">View changes</a> since article was first published.</p>` + div.innerHTML;
div.innerHTML = `<h3>Updates</h3><p><a href="${data.githubCompareUpdatesUrl}">View all changes</a> to this article since it was first published.</p>` + div.innerHTML;
}
el.querySelector("a.github").setAttribute("href", data.githubUrl);
+2 -2
View File
@@ -5911,9 +5911,9 @@ var appendix = function(dom, data) {
}
div.innerHTML = oldHtml + div.innerHTML;
console.log(data.githubCompareUpdatesUrl);
if (data.githubCompareUpdatesUrl) {
div.innerHTML = "<h3>Updates</h3><p><a href=\"" + (data.githubCompareUpdatesUrl) + "\">View changes</a> since article was first published.</p>" + div.innerHTML;
div.innerHTML = "<h3>Updates</h3><p><a href=\"" + (data.githubCompareUpdatesUrl) + "\">View all changes</a> to this article since it was first published.</p>" + div.innerHTML;
}
el.querySelector("a.github").setAttribute("href", data.githubUrl);
+1 -1
View File
File diff suppressed because one or more lines are too long