mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-17 03:01:06 +00:00
add a feedback link to the doc pages
This commit is contained in:
parent
fc7f11d03b
commit
7ee102eecf
3 changed files with 15 additions and 1 deletions
|
|
@ -56,7 +56,8 @@ a {
|
||||||
}
|
}
|
||||||
|
|
||||||
#section {
|
#section {
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#section h1 {
|
#section h1 {
|
||||||
|
|
@ -168,3 +169,9 @@ a {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: orange;
|
color: orange;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#feedback {
|
||||||
|
float: right;
|
||||||
|
width: 10em;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
@ -34,6 +34,12 @@ function DocsController($location, $browser, $window) {
|
||||||
$window.scroll(0,0);
|
$window.scroll(0,0);
|
||||||
SyntaxHighlighter.highlight();
|
SyntaxHighlighter.highlight();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
this.getFeedbackUrl = function() {
|
||||||
|
return "mailto:angular@googlegroups.com?" +
|
||||||
|
"subject=" + escape("Feedback on " + $location.href) + "&" +
|
||||||
|
"body=" + escape("Hi there,\n\nI read " + $location.href + " and wanted to ask ....");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="section">
|
<div id="section">
|
||||||
|
<a id="feedback" ng:href="{{getFeedbackUrl()}}">Report an Issue or Ask a Question</a>
|
||||||
<ng:include src="getCurrentPartial()" onload="afterPartialLoaded()"></ng:include>
|
<ng:include src="getCurrentPartial()" onload="afterPartialLoaded()"></ng:include>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue