mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-17 11:11:05 +00:00
feat(docs): add a changelog link to the footer
This commit is contained in:
parent
f3e04fbd6a
commit
bee78a8492
3 changed files with 24 additions and 3 deletions
|
|
@ -80,10 +80,20 @@ li {
|
||||||
#footer {
|
#footer {
|
||||||
clear: both;
|
clear: both;
|
||||||
padding: 2em 4em 1em;
|
padding: 2em 4em 1em;
|
||||||
text-align: right;
|
|
||||||
font-size: 12px;
|
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 -----*/
|
/*----- navigation styles -----*/
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,12 @@ function DocsController($location, $browser, $window) {
|
||||||
var self = this;
|
var self = this;
|
||||||
this.$location = $location;
|
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)) {
|
if (!HAS_HASH.test($location.href)) {
|
||||||
$location.hashPath = '!/api';
|
$location.hashPath = '!/api';
|
||||||
}
|
}
|
||||||
|
|
@ -67,7 +73,6 @@ function DocsController($location, $browser, $window) {
|
||||||
"subject=" + escape("Feedback on " + $location.href) + "&" +
|
"subject=" + escape("Feedback on " + $location.href) + "&" +
|
||||||
"body=" + escape("Hi there,\n\nI read " + $location.href + " and wanted to ask ....");
|
"body=" + escape("Hi there,\n\nI read " + $location.href + " and wanted to ask ....");
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// prevent compilation of code
|
// prevent compilation of code
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,13 @@
|
||||||
<ng:include id="content" src="getCurrentPartial()" onload="afterPartialLoaded()"></ng:include>
|
<ng:include id="content" src="getCurrentPartial()" onload="afterPartialLoaded()"></ng:include>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="footer">© 2010-2011 AngularJS</div>
|
<div id="footer">
|
||||||
|
<a id="version"
|
||||||
|
ng:href="https://github.com/angular/angular.js/blob/master/CHANGELOG.md#{{versionNumber}}"
|
||||||
|
ng:bind-template="v{{version}}">
|
||||||
|
</a>
|
||||||
|
<span id="copyright">© 2010-2011 AngularJS</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="syntaxhighlighter/syntaxhighlighter-combined.js"></script>
|
<script src="syntaxhighlighter/syntaxhighlighter-combined.js"></script>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue