add a feedback link to the doc pages

This commit is contained in:
Igor Minar 2010-11-18 16:53:11 -08:00
parent fc7f11d03b
commit 7ee102eecf
3 changed files with 15 additions and 1 deletions

View file

@ -56,7 +56,8 @@ a {
}
#section {
padding: 1em;
padding: 1em;
width: 100%;
}
#section h1 {
@ -168,3 +169,9 @@ a {
font-weight: bold;
color: orange;
}
#feedback {
float: right;
width: 10em;
text-align: right;
}

View file

@ -34,6 +34,12 @@ function DocsController($location, $browser, $window) {
$window.scroll(0,0);
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 ....");
}
}

View file

@ -39,6 +39,7 @@
</div>
</div>
<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>
</div>
</div>