angular-docs-cn/public/_includes/_version-dropdown.jade

30 lines
612 B
Plaintext
Raw Normal View History

2015-03-01 09:42:31 -05:00
language = current.path[1]
version = current.path[2]
title = "Some Version"
if language == 'js'
if version == "latest"
2015-03-02 02:48:31 -05:00
title = 'Javascript ' + jsLatest
2015-03-01 09:42:31 -05:00
if language == 'dart'
if version == "latest"
2015-03-02 02:48:31 -05:00
title = 'Dart ' + dartLatest
2015-03-01 09:42:31 -05:00
2015-03-02 22:07:47 -05:00
filter = /(\.html$)/
replace = /(\.html$)|(^index\.html$)/
mixin tree(head, tail)
for val, key in head
if key !== '.git' && key !== '_data'
2015-03-03 01:57:42 -05:00
li #{key}
2015-03-02 22:07:47 -05:00
2015-03-03 01:57:42 -05:00
mixin tree(public.docs.js, "")
mixin tree(public.docs.dart, "")
2015-03-02 22:07:47 -05:00
2015-03-01 09:42:31 -05:00
h2.hero-subtitle.text-subhead
2015-03-01 18:43:22 -05:00
button(md-button ng-click="showVersionMenu($event)") #{title} <span class="icon-arrow-drop-down"></span>
2015-03-02 10:15:03 -05:00