Last active
December 23, 2015 10:59
-
-
Save dwcramer/6624719 to your computer and use it in GitHub Desktop.
Log a bug link experiements
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a id="logABugLink" href="">Log a bug</a> | |
<script language="JavaScript"> | |
var bugTitle = "4.1. Simplicity in Cloud Files™ Introduction - API v1"; | |
var buildTime = "Built 20130918T23 04 24Z05 00" | |
var docUrl = "at url " + window.location.pathname; | |
var gitSha = "git SHA a997cbc1" ; | |
var gitRepo = "git Repo [email protected]:IX/cloud-files.git "; | |
var lineFeed = "%0A"; | |
<!-- + lineFeed + encodeURI(gitRepo) --> | |
var fieldComment = encodeURI(buildTime) + lineFeed + encodeURI(gitSha) + lineFeed + encodeURI(docUrl) ; | |
var urlBase = "https://bugs.launchpad.net/openstack-manuals/+filebug?field.title=" | |
var bugLink = urlBase + encodeURIComponent(bugTitle) + "&field.comment=" + fieldComment ; | |
document.write("<br/><br/>bugLink="+bugLink); | |
document.getElementById("logABugLink").href=bugLink; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment