forked from possibilities/meteor-tabs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tabs.html
45 lines (36 loc) · 810 Bytes
/
tabs.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<template name="tabs">
<div class="tabbable">
<ul class="nav nav-tabs">
{{tabs}}
</ul>
<div class="tab-content">
{{> tabContents}}
</div>
</div>
</template>
<template name="tabContents">
{{#each tabContents}}
<div class="tab-pane" id="{{target}}">
{{tabBody}}
</div>
{{/each}}
</template>
<template name="tab">
<li{{#if default}} class="default-tab"{{/if}}>
<a href="{{path}}" data-target="#{{target}}" data-toggle="tab">
{{label}}
</a>
</li>
</template>
<template name="dropdown">
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
{{label}} <b class="caret"></b>
</a>
<ul class="dropdown-menu">
{{#each tabs}}
{{> tab}}
{{/each}}
</ul>
</li>
</template>