Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit bee78a8

Browse files
Di PengIgorMinar
Di Peng
authored andcommitted
feat(docs): add a changelog link to the footer
1 parent f3e04fb commit bee78a8

File tree

3 files changed

+24
-3
lines changed

3 files changed

+24
-3
lines changed

docs/src/templates/docs.css

+11-1
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,20 @@ li {
8080
#footer {
8181
clear: both;
8282
padding: 2em 4em 1em;
83-
text-align: right;
8483
font-size: 12px;
8584
}
8685

86+
#copyright {
87+
float:right;
88+
text-align: right;
89+
}
90+
91+
#version {
92+
margin-top: -1.2em;
93+
margin-left: -2em;
94+
margin-right: 0.5em;
95+
color: #251BE0;
96+
}
8797

8898

8999
/*----- navigation styles -----*/

docs/src/templates/docs.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ function DocsController($location, $browser, $window) {
55
var self = this;
66
this.$location = $location;
77

8+
self.versionNumber = angular.version.full;
9+
self.version = angular.version.full + " " + angular.version.codeName;
10+
self.cookieName = "angularPref";
11+
self.subpage = false;
12+
self.offlineEnabled = (document.cookie.indexOf(self.cookieName) !== -1);
13+
814
if (!HAS_HASH.test($location.href)) {
915
$location.hashPath = '!/api';
1016
}
@@ -67,7 +73,6 @@ function DocsController($location, $browser, $window) {
6773
"subject=" + escape("Feedback on " + $location.href) + "&" +
6874
"body=" + escape("Hi there,\n\nI read " + $location.href + " and wanted to ask ....");
6975
};
70-
7176
}
7277

7378
// prevent compilation of code

docs/src/templates/index.html

+7-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,13 @@ <h2 ng:bind="partialTitle"></h2>
7272
<ng:include id="content" src="getCurrentPartial()" onload="afterPartialLoaded()"></ng:include>
7373
</div>
7474

75-
<div id="footer">© 2010-2011 AngularJS</div>
75+
<div id="footer">
76+
<a id="version"
77+
ng:href="https://github.com/angular/angular.js/blob/master/CHANGELOG.md#{{versionNumber}}"
78+
ng:bind-template="v{{version}}">
79+
</a>
80+
<span id="copyright">© 2010-2011 AngularJS</span>
81+
</div>
7682
</div>
7783

7884
<script src="syntaxhighlighter/syntaxhighlighter-combined.js"></script>

0 commit comments

Comments
 (0)