From bee78a84922da51de647af96fe86f75b1322d3d9 Mon Sep 17 00:00:00 2001 From: Di Peng Date: Wed, 20 Jul 2011 19:27:59 -0700 Subject: feat(docs): add a changelog link to the footer --- docs/src/templates/docs.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'docs/src/templates/docs.js') diff --git a/docs/src/templates/docs.js b/docs/src/templates/docs.js index 1040f2c2..ab2d836a 100644 --- a/docs/src/templates/docs.js +++ b/docs/src/templates/docs.js @@ -5,6 +5,12 @@ function DocsController($location, $browser, $window) { var self = this; this.$location = $location; + self.versionNumber = angular.version.full; + self.version = angular.version.full + " " + angular.version.codeName; + self.cookieName = "angularPref"; + self.subpage = false; + self.offlineEnabled = (document.cookie.indexOf(self.cookieName) !== -1); + if (!HAS_HASH.test($location.href)) { $location.hashPath = '!/api'; } @@ -67,7 +73,6 @@ function DocsController($location, $browser, $window) { "subject=" + escape("Feedback on " + $location.href) + "&" + "body=" + escape("Hi there,\n\nI read " + $location.href + " and wanted to ask ...."); }; - } // prevent compilation of code -- cgit v1.2.3