Merge pull request #411 from bitcoin/devel-report

Add "Report An Issue" action in developer documentation toc
This commit is contained in:
saivann 2014-05-20 18:57:16 -04:00
commit b6a8926062
6 changed files with 87 additions and 5 deletions

View file

@ -706,12 +706,15 @@ table td,table th{
font-weight:bold;
left:0px;
}
.toc ul+ul{
.toc ul.goback{
padding-top:8px;
}
.toc ul+ul li{
.toc ul.goback li{
background:url(/img/mini_ico_back.svg) no-repeat 0 3px;
}
.toc ul.reportissue li{
background:url(/img/mini_ico_report.svg) no-repeat 0 3px;
}
.toc a,
.toc a:link,
.toc a:active,
@ -1676,7 +1679,10 @@ h2 .rssicon{
.toc ul li ul li a.active:before{
content:"";
}
.toc ul+ul li{
.toc ul.goback li{
background:none;
}
.toc ul.reportissue li{
background:none;
}
.toccontent{

View file

@ -14,7 +14,8 @@ title: "Developer Guide - Bitcoin"
* Table of contents
{:toc}
<ul><li><a href="/en/developer-documentation">Return To Overview</a></li></ul>
<ul class="goback"><li><a href="/en/developer-documentation">Return To Overview</a></li></ul>
<ul class="reportissue"><li><a href="https://github.com/bitcoin/bitcoin.org/issues/new" onmouseover="updateIssue(event);">Report An Issue</a></li></ul>
</div></div>

View file

@ -14,7 +14,8 @@ title: "Developer Reference - Bitcoin"
* Table of contents
{:toc}
<ul><li><a href="/en/developer-documentation">Return To Overview</a></li></ul>
<ul class="goback"><li><a href="/en/developer-documentation">Return To Overview</a></li></ul>
<ul class="reportissue"><li><a href="https://github.com/bitcoin/bitcoin.org/issues/new" onmouseover="updateIssue(event);">Report An Issue</a></li></ul>
</div></div>
<div markdown="1" class="toccontent">

BIN
img/mini_ico_report.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 641 B

68
img/mini_ico_report.svg Normal file
View file

@ -0,0 +1,68 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="16"
height="16"
id="svg3019"
version="1.1"
inkscape:version="0.48.4 r9939"
sodipodi:docname="mini_ico_report.svg"
inkscape:export-filename="/media/X/bitcoin.org/current/img/mini_ico_report.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<defs
id="defs3021" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="31.672167"
inkscape:cx="7.6536402"
inkscape:cy="6.6787599"
inkscape:current-layer="layer1"
showgrid="true"
inkscape:grid-bbox="true"
inkscape:document-units="px"
inkscape:window-width="1615"
inkscape:window-height="1026"
inkscape:window-x="65"
inkscape:window-y="24"
inkscape:window-maximized="1"
showguides="true"
inkscape:guide-bbox="true" />
<metadata
id="metadata3024">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
id="layer1"
inkscape:label="Layer 1"
inkscape:groupmode="layer"
transform="translate(0,-16)">
<path
style="fill:none;stroke:#2c6fad;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
d="M 4.2518427,30.52139 3.6971593,26.474148 c 0,0 -0.5242309,-0.07079 -1.0988586,-0.686195 -1.3890121,-1.487596 -1.66713614,-4.59217 0.6640068,-6.265031 2.7117349,-1.945979 7.5511865,-1.950765 9.8383245,0.238159 1.80139,1.724033 1.590068,5.133761 -0.580069,6.266774 -1.560348,0.788955 -1.717642,0.792925 -3.8111042,0.915685 z"
id="path3027"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccsssccc" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.4 KiB

View file

@ -361,6 +361,12 @@ addEvent(window,'load',evtimestamp);
init();
}
function updateIssue(e){
//Update GitHub issue link with pre-filled with current page location
var t=getEventTarget(e);
t.href='https://github.com/bitcoin/bitcoin.org/issues/new?body='+encodeURIComponent('Location: '+window.location.href.toString()+"\n\n");
}
function makeEditable(e){
//An easter egg that makes the page editable when user click on the page and hold their mouse button for one second.
//This trick allows translators and writers to preview their work.