-
Notifications
You must be signed in to change notification settings - Fork 1
/
page.vm
87 lines (73 loc) · 3.7 KB
/
page.vm
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!DOCTYPE html>
<html lang="en">
<head>
<title>$page.title</title>
$include.template("include-htmlhead.vm")
</head>
<body>
$include.template("include-header.vm")
<div class="container bc-page-container">
<div class="row">
$include.template("include-sidebar.vm")
<div class="col-md-9" role="main">
<div class="pull-right" style="margin-top: 30px;">
#if($versions)
<div class="btn-group">
<button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown">
Version: $versions.current.name <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
#foreach($version in $versions.available)
<li><a href="?scroll-versions%3Aversion-name=$version.name">$version.name</a></li>
#end
</ul>
</div>
#end
#if($variants)
<div class="btn-group" style="margin-left: 10px;">
<button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown">
Variant: $variants.current.name <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
#foreach($variant in $variants.available)
<li><a href="?scroll-versions%3Aversion-name=$variant.name">$variant.name</a></li>
#end
</ul>
</div>
#end
#if($languages)
<div class="btn-group" style="margin-left: 10px;">
<button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown">
Language: $languages.current.name <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
#foreach($language in $languages.available)
<li><a href="?scroll-versions%3Aversion-name=$language.name">$language.name</a></li>
#end
</ul>
</div>
#end
</div>
<div class="bs-docs-section">
<div class="page-header">
<h1 id="overview">$page.title</h1>
</div>
## <p class="lead">$page.excerpt</p>
#set ($contentAsHtml = $page.renderContent("overrides/page-layout.vm", {
"info" : "overrides/admonitions.vm",
"tip" : "overrides/admonitions.vm",
"warning" : "overrides/admonitions.vm",
"note" : "overrides/admonitions.vm",
"code" : "overrides/panels.vm",
"panel" : "overrides/panels.vm",
"noformat" : "overrides/panels.vm",
"tabs" : "overrides/tabs.vm"
}))
#set ($contentAsHtml = $stringUtils.replace($contentAsHtml, "confluenceTable", "table table-striped"))
$contentAsHtml
</div>
</div>
</div>
</div>
$include.template("include-footer.vm")
</body>