aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorIgor Minar2010-11-18 16:53:11 -0800
committerIgor Minar2010-11-18 16:53:11 -0800
commit7ee102eecf927c5a481c6d16b5ff08bfe9563bdc (patch)
tree6bc12f7238c2606970aa8d53f003084d1ed03ec4 /docs
parentfc7f11d03b4380866033c38eb7649cdc5be93d9a (diff)
downloadangular.js-7ee102eecf927c5a481c6d16b5ff08bfe9563bdc.tar.bz2
add a feedback link to the doc pages
Diffstat (limited to 'docs')
-rw-r--r--docs/docs.css9
-rw-r--r--docs/docs.js6
-rw-r--r--docs/index.html1
3 files changed, 15 insertions, 1 deletions
diff --git a/docs/docs.css b/docs/docs.css
index 4ade0405..69cfb078 100644
--- a/docs/docs.css
+++ b/docs/docs.css
@@ -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;
+} \ No newline at end of file
diff --git a/docs/docs.js b/docs/docs.js
index 8c836049..a475b7b6 100644
--- a/docs/docs.js
+++ b/docs/docs.js
@@ -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 ....");
+ }
}
diff --git a/docs/index.html b/docs/index.html
index 12f23fbb..0f2d3003 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -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>