From 0e63b1f39bde5aed4d62276e123198872bc4219e Mon Sep 17 00:00:00 2001 From: Ward Bell Date: Fri, 22 Apr 2016 19:56:13 -0700 Subject: [PATCH] chore: "Doc" menu retains current language #1060 --- public/_includes/_main-nav.jade | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/_includes/_main-nav.jade b/public/_includes/_main-nav.jade index 4cbe5e397e..c349d46d13 100644 --- a/public/_includes/_main-nav.jade +++ b/public/_includes/_main-nav.jade @@ -1,3 +1,6 @@ +- var language = current.path[1] || 'ts' +- if (language !== 'ts' || language !== 'js' || language !== 'dart') { language = 'ts'; } + md-toolbar(class="main-nav background-regal l-pinned-top l-layer-5",scroll-y-offset-element) nav h1 Angular by Google @@ -6,7 +9,7 @@ md-toolbar(class="main-nav background-regal l-pinned-top l-layer-5",scroll-y-off ul(ng-class="appCtrl.showMainNav ? 'is-visible' : ''") li.l-left Features - li.l-left Docs + li.l-left Docs li.l-left About li.l-left Contribute li.l-left Support