angular-cn/public/_includes/_main-nav.jade

23 lines
4.6 KiB
Plaintext

- var language = current.path[1] || 'ts'
- if (language !== 'ts' || language !== 'js' || language !== 'dart') { language = 'ts'; }
nav(data-swiftype-index="false" class="main-nav l-pinned-top l-layer-5", scroll-y-offset-element)
h1 <a href="/" md-button>Angular <sup>by Google</sup></a>
button(class="main-nav-button main-nav-mobile-trigger l-right" aria-label="查看菜单" ng-click="appCtrl.toggleMainMenu($event)" md-button) 网站菜单 <span class="icon icon-arrow-drop-down"></span>
ul(ng-class="appCtrl.showMainNav ? 'is-visible' : ''")
li.l-left <a class="main-nav-button" href="/features.html" md-button>特性</a>
li.l-left <a class="main-nav-button" href="/docs/#{language}/latest/" md-button>文档</a>
li.l-left <a class="main-nav-button" href="/events.html" md-button>会议</a>
li.l-left <a class="main-nav-button" href="/news.html" md-button>新闻</a>
li.l-left
a.main-nav-button(href="http://community.angular.cn/" target="_blank" md-button)
| 社区
img(src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTZweCIgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSIwIDAgMTYgMTYiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPiAgICAgICAgPHBhdGggZD0iTTE0Ljk0NDY1NTcsOS45NzgwMjMyMSBMMTMuNTA1NTc0Myw4LjY5NjQyMDE1IEMxMy4wODg5MzA0LDguMzI1NjA3MSAxMy4wODg5MzA0LDcuNzE4MTM3MDggMTMuNTA1NTc0Myw3LjM0NzMyNDA0IEwxNC45NDQ2NTU3LDYuMDY0ODkwOTUgQzE1LjM2MTI5OTYsNS42OTQwNzc5IDE1LjI1M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MTMuNDQwNjAzOSwxMS4yNjIxMDAxIEwxNC43MjYzNzM0LDEwLjkxNTQ1NTYgQzE1LjI2MzAxMzksMTAuNzcwNDYwMyAxNS4zNjEzMzIxLDEwLjM0ODgyIDE0Ljk0NDY4ODIsOS45NzgwMDY5MyBMMTQuOTQ0NjU1Nyw5Ljk3ODAyMzIxIFogTTguNTM2NjcyOTQsMTEuMzU3OTQ0NSBMNi44NzAwOTc0NSwxMS4zNTc5NDQ1IEw2Ljg3MDA5NzQ1LDkuNjkxMzY4OTcgTDguNTM2NjcyOTQsOS42OTEzNjg5NyBMOC41MzY2NzI5NCwxMS4zNTc5NDQ1IEw4LjUzNjY3Mjk0LDExLjM1Nzk0NDUgWiBNOC41MzY2NzI5NCw4Ljg1ODA4MTIzIEw2Ljg3MDA5NzQ1LDguODU4MDgxMjMgTDYuODcwMDk3NDUsNC42OTE2NDI1MSBMOC41MzY2NzI5NCw0LjY5MTY0MjUxIEw4LjUzNjY3Mjk0LDguODU4MDgxMjMgTDguNTM2NjcyOTQsOC44NTgwODEyMyBaIiBpZD0iU2hhcGUiIGZpbGw9IiNGNEMyMEQiPjwvcGF0aD4gICAgPC9nPjwvc3ZnPg==")
li.l-left <a class="main-nav-button" href="/translate/cn/home.html" md-button>关于中文版</a>
li.l-right <a class="main-nav-button" href="/docs/ts/latest/quickstart.html" md-button>立即开始!</a>
li.l-right
a.main-nav-button.md-button.ng-cloak(ng-click="appCtrl.toggleSource($event)", href)
span {{appCtrl.sourceVisible?'Hide English':'Show English'}}