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.css | 12 +++++++++++- docs/src/templates/docs.js | 7 ++++++- docs/src/templates/index.html | 8 +++++++- 3 files changed, 24 insertions(+), 3 deletions(-) (limited to 'docs/src') diff --git a/docs/src/templates/docs.css b/docs/src/templates/docs.css index 71144edf..681da96c 100644 --- a/docs/src/templates/docs.css +++ b/docs/src/templates/docs.css @@ -80,10 +80,20 @@ li { #footer { clear: both; padding: 2em 4em 1em; - text-align: right; font-size: 12px; } +#copyright { + float:right; + text-align: right; +} + +#version { + margin-top: -1.2em; + margin-left: -2em; + margin-right: 0.5em; + color: #251BE0; +} /*----- navigation styles -----*/ 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 diff --git a/docs/src/templates/index.html b/docs/src/templates/index.html index ce8e9718..4ca4218a 100644 --- a/docs/src/templates/index.html +++ b/docs/src/templates/index.html @@ -72,7 +72,13 @@ - + -- cgit v1.2.3