2016-04-22 22:56:13 -04:00
|
|
|
- var language = current.path[1] || 'ts'
|
|
|
|
- if (language !== 'ts' || language !== 'js' || language !== 'dart') { language = 'ts'; }
|
|
|
|
|
2016-10-25 13:26:32 -04:00
|
|
|
nav(data-swiftype-index="false" class="main-nav l-pinned-top l-layer-5", scroll-y-offset-element)
|
2016-09-12 11:34:29 -04:00
|
|
|
h1 <a href="/" md-button>Angular <sup>by Google</sup></a>
|
2015-02-18 19:47:52 -05:00
|
|
|
|
2016-09-15 05:08:17 -04:00
|
|
|
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>
|
2015-03-04 23:27:30 -05:00
|
|
|
|
2016-09-15 05:08:17 -04:00
|
|
|
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>
|
2016-10-25 22:47:20 -04:00
|
|
|
li.l-left
|
|
|
|
a.main-nav-button(href="http://community.angular.cn/" target="_blank" md-button)
|
|
|
|
| 社区
|
2016-09-15 05:08:17 -04:00
|
|
|
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'}}
|