From 5807392b5c58662d79bdbc08387a3a2a7ec5ea1d Mon Sep 17 00:00:00 2001 From: Stephen Sawchuk Date: Fri, 8 May 2015 10:15:14 -0400 Subject: [PATCH] docs: sidebar links should stay consistent across doc pages --- docs/site/components/subpage/subpage-directive.js | 4 ++-- docs/site/components/subpage/subpage.html | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/docs/site/components/subpage/subpage-directive.js b/docs/site/components/subpage/subpage-directive.js index 9951be9b6ce..4c6331fc6fc 100644 --- a/docs/site/components/subpage/subpage-directive.js +++ b/docs/site/components/subpage/subpage-directive.js @@ -1,6 +1,6 @@ angular .module('gcloud.subpage', ['gcloud.header']) - .directive('subpage', function($parse, $location) { + .directive('subpage', function($location, getLinks) { 'use strict'; return { @@ -8,7 +8,7 @@ angular 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) { diff --git a/docs/site/components/subpage/subpage.html b/docs/site/components/subpage/subpage.html index 745fff9243d..c92feff0c64 100644 --- a/docs/site/components/subpage/subpage.html +++ b/docs/site/components/subpage/subpage.html @@ -51,11 +51,6 @@