Skip to content

Commit 22c0d6d

Browse files
committedOct 19, 2015
Added accounts and added template to the header
chapter6-1
1 parent 04bfa8e commit 22c0d6d

File tree

5 files changed

+37
-5
lines changed

5 files changed

+37
-5
lines changed
 

‎.meteor/packages

+2
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ twbs:bootstrap
2121
underscore
2222
iron:router@1.0.0-rc.1
2323
sacha:spin
24+
accounts-password
25+
ian:accounts-ui-bootstrap-3

‎.meteor/versions

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
accounts-base@1.2.1
2+
accounts-password@1.1.3
3+
anti:i18n@0.4.3
14
autoupdate@1.2.3
25
babel-compiler@5.8.24_1
36
babel-runtime@0.1.4
@@ -14,19 +17,22 @@ check@1.0.6
1417
ddp@1.2.2
1518
ddp-client@1.2.1
1619
ddp-common@1.2.1
20+
ddp-rate-limiter@1.0.0
1721
ddp-server@1.2.1
1822
deps@1.0.9
1923
diff-sequence@1.0.1
2024
ecmascript@0.1.5
2125
ecmascript-collections@0.1.6
2226
ejson@1.0.7
27+
email@1.0.7
2328
es5-shim@4.1.13
2429
fastclick@1.0.7
2530
geojson-utils@1.0.4
2631
hot-code-push@1.0.0
2732
html-tools@1.0.5
2833
htmljs@1.0.5
2934
http@1.1.1
35+
ian:accounts-ui-bootstrap-3@1.2.83
3036
id-map@1.0.4
3137
insecure@1.0.4
3238
iron:controller@1.0.12
@@ -40,6 +46,7 @@ iron:url@1.0.11
4046
jquery@1.11.4
4147
launch-screen@1.0.4
4248
livedata@1.0.15
49+
localstorage@1.0.5
4350
logging@1.0.8
4451
meteor@1.1.9
4552
meteor-base@1.0.1
@@ -49,21 +56,27 @@ mobile-experience@1.0.1
4956
mobile-status-bar@1.0.6
5057
mongo@1.1.2
5158
mongo-id@1.0.1
59+
npm-bcrypt@0.7.8_2
5260
npm-mongo@1.4.39_1
5361
observe-sequence@1.0.7
5462
ordered-dict@1.0.4
5563
promise@0.5.0
5664
random@1.0.4
65+
rate-limit@1.0.0
5766
reactive-dict@1.1.2
5867
reactive-var@1.0.6
5968
reload@1.1.4
6069
retry@1.0.4
6170
routepolicy@1.0.6
6271
sacha:spin@2.3.1
72+
service-configuration@1.0.5
6373
session@1.1.1
74+
sha@1.0.4
6475
spacebars@1.0.7
6576
spacebars-compiler@1.0.7
77+
srp@1.0.4
6678
standard-minifiers@1.0.1
79+
stylus@2.511.0_2
6780
templating@1.1.4
6881
templating-tools@1.0.0
6982
tracker@1.0.9

‎client/helpers/config.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Accounts.ui.config({
2+
passwordSignupFields: 'USERNAME_ONLY'
3+
});

‎client/templates/application/layout.html

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
<template name="layout">
22
<div class="container">
3-
<header class="navbar navbar-default" role="navigation">
4-
<div class="navbar-header">
5-
<a class="navbar-brand" href="{{pathFor 'postsList'}}">Microscope</a>
6-
</div>
7-
</header>
3+
{{> header}}
84
<div id="main">
95
{{> yield}}
106
</div>

‎client/templates/includes/header.html

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<template name="header">
2+
<nav class="navbar navbar-default" role="navigation">
3+
<div class="navbar-header">
4+
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navigation">
5+
<span class="sr-only">Toggle navigation</span>
6+
<span class="icon-bar"></span>
7+
<span class="icon-bar"></span>
8+
<span class="icon-bar"></span>
9+
</button>
10+
<a class="navbar-brand" href="{{pathFor 'postsList'}}">Microscope</a>
11+
</div>
12+
<div class="collapse navbar-collapse" id="navigation">
13+
<ul class="nav navbar-nav navbar-right">
14+
{{> loginButtons}}
15+
</ul>
16+
</div>
17+
</nav>
18+
</template>

1 commit comments

Comments
 (1)

Vivais commented on Dec 4, 2017

@Vivais

In windows i have to add session module:
meteor add session

Please sign in to comment.