Skip to content

Commit

Permalink
Merge pull request #543 from stephenplusplus/spp--docs-sidebar-consis…
Browse files Browse the repository at this point in the history
…tency

docs: sidebar links should stay consistent across doc pages
  • Loading branch information
ryanseys committed May 8, 2015
2 parents a81418a + 5807392 commit 6bc5b9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions docs/site/components/subpage/subpage-directive.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
angular
.module('gcloud.subpage', ['gcloud.header'])
.directive('subpage', function($parse, $location) {
.directive('subpage', function($location, getLinks) {
'use strict';

return {
transclude: true,
templateUrl: 'site/components/subpage/subpage.html',
link: function($scope, elem, attrs) {
$scope.title = attrs.title;
$scope.links = $parse(attrs.links)();
$scope.links = getLinks('master');
$scope.headerTemplateUrl = attrs.headerTemplateurl;

if (attrs.isActiveUrl) {
Expand Down
5 changes: 0 additions & 5 deletions docs/site/components/subpage/subpage.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@ <h1 class="logo">
</ul>

<ul class="page-sections external-links">
<li>
<a href="#/docs" title="Documentation" ng-if="!isActiveUrl('/docs')">
Documentation
</a>
</li>
<li>
<a href="#/authorization" ng-class="{ current: isActiveUrl('/authorization') }" title="Authorization">
Authorization
Expand Down

0 comments on commit 6bc5b9d

Please sign in to comment.