Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 06a60e7

Browse files
demo(*): add instalation instructions
1 parent 7f137ee commit 06a60e7

File tree

1 file changed

+46
-6
lines changed

1 file changed

+46
-6
lines changed

misc/demo-template.html

Lines changed: 46 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,20 @@
2424
<header class="navbar navbar-fixed-top">
2525
<div class="navbar-inner">
2626
<div class="container">
27-
<a class="brand" href="#">ui-bootstrap</a>
27+
<a class="brand" href="#">UI Bootstrap</a>
2828
<div class="nav-collapse">
2929
<ul class="nav">
30-
<% modules.forEach(function(module) { %>
31-
<li><a href="#<%= module.name %>"><%= module.displayName %></a></li>
32-
<% }); %>
30+
<li>
31+
<a href="#" role="button" class="dropdown-toggle">
32+
Directives <b class="caret"></b>
33+
</a>
34+
<ul class="dropdown-menu">
35+
<% modules.forEach(function(module) { %>
36+
<li><a href="#<%= module.name %>"><%= module.displayName %></a></li>
37+
<% }); %>
38+
</ul>
39+
</li>
40+
<li><a href="#getting_started">Getting started</a></li>
3341
</ul>
3442
</div>
3543
</div>
@@ -101,6 +109,38 @@ <h1>
101109
</header>
102110

103111
<div class="container container-fluid">
112+
113+
<section id="getting_started">
114+
<div class="page-header">
115+
<h1>Getting started</h1>
116+
</div>
117+
<div class="row-fluid">
118+
<div class="span12">
119+
<h3>Dependencies</h3>
120+
<p>
121+
This repository contains a set of <strong>native AngularJS directives</strong> based on
122+
Twitter Bootstrap's markup and CSS. As a result no dependency on jQuery or Bootstrap's
123+
JavaScript is required. The <strong>only required dependencies</strong> are:
124+
</p>
125+
<ul>
126+
<li>AngularJS (minimal version 1.0.4 or 1.1.2)</li>
127+
<li>Bootstrap CSS</li>
128+
</ul>
129+
<h3>Files to download</h3>
130+
<p>
131+
Build files for all directives are distributed in several flavours: minified for production usage, un-minified
132+
for development, with or without templates. All the options are described and can be
133+
<a href="https://github.com/angular-ui/bootstrap/tree/gh-pages">downloaded from here</a>.
134+
</p>
135+
<p>Alternativelly, if you are only interested in a subset of directives, you can
136+
<a ng-click="showBuildModal()">create your own build</a>.
137+
</p>
138+
<p>Whichever method you choose the good news that the overall size of a download is very small:
139+
&lt;20kB for all directives (~5kB with gzip compression!)</p>
140+
</div>
141+
</div>
142+
</section>
143+
104144
<% modules.forEach(function(module) { %>
105145
<section id="<%= module.name %>">
106146
<div class="page-header">
@@ -152,14 +192,14 @@ <h1><%= module.displayName %></h1>
152192
<h3 style="text-align: center;">{{buildErrorText}}</h3>
153193
</div>
154194
<div ng-hide="buildErrorText">
155-
<h3 style="text-align: center;">Select the modules you wish to download:</h3>
195+
<label>Select the modules you wish to download:
156196
<select style="width: 100%;" ui-select2 multiple
157197
ui-options="{multiple: true}"
158198
ng-model="selectedModules">
159199
<% modules.forEach(function(module) { %>
160200
<option value="<%= module.name %>"><%= module.displayName %></option>
161201
<% }); %>
162-
</select>
202+
</select></label>
163203
</div>
164204
</div>
165205
<div class="modal-footer">

0 commit comments

Comments
 (0)