Skip to content

Commit

Permalink
Added accounts and added template to the header
Browse files Browse the repository at this point in the history
chapter6-1
  • Loading branch information
tmeasday committed Oct 19, 2015
1 parent 04bfa8e commit 22c0d6d
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .meteor/packages
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ twbs:bootstrap
underscore
iron:router@1.0.0-rc.1
sacha:spin
accounts-password
ian:accounts-ui-bootstrap-3
13 changes: 13 additions & 0 deletions .meteor/versions
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
accounts-base@1.2.1
accounts-password@1.1.3
anti:i18n@0.4.3
autoupdate@1.2.3
babel-compiler@5.8.24_1
babel-runtime@0.1.4
Expand All @@ -14,19 +17,22 @@ check@1.0.6
ddp@1.2.2
ddp-client@1.2.1
ddp-common@1.2.1
ddp-rate-limiter@1.0.0
ddp-server@1.2.1
deps@1.0.9
diff-sequence@1.0.1
ecmascript@0.1.5
ecmascript-collections@0.1.6
ejson@1.0.7
email@1.0.7
es5-shim@4.1.13
fastclick@1.0.7
geojson-utils@1.0.4
hot-code-push@1.0.0
html-tools@1.0.5
htmljs@1.0.5
http@1.1.1
ian:accounts-ui-bootstrap-3@1.2.83
id-map@1.0.4
insecure@1.0.4
iron:controller@1.0.12
Expand All @@ -40,6 +46,7 @@ iron:url@1.0.11
jquery@1.11.4
launch-screen@1.0.4
livedata@1.0.15
localstorage@1.0.5
logging@1.0.8
meteor@1.1.9
meteor-base@1.0.1
Expand All @@ -49,21 +56,27 @@ mobile-experience@1.0.1
mobile-status-bar@1.0.6
mongo@1.1.2
mongo-id@1.0.1
npm-bcrypt@0.7.8_2
npm-mongo@1.4.39_1
observe-sequence@1.0.7
ordered-dict@1.0.4
promise@0.5.0
random@1.0.4
rate-limit@1.0.0
reactive-dict@1.1.2
reactive-var@1.0.6
reload@1.1.4
retry@1.0.4
routepolicy@1.0.6
sacha:spin@2.3.1
service-configuration@1.0.5
session@1.1.1
sha@1.0.4
spacebars@1.0.7
spacebars-compiler@1.0.7
srp@1.0.4
standard-minifiers@1.0.1
stylus@2.511.0_2
templating@1.1.4
templating-tools@1.0.0
tracker@1.0.9
Expand Down
3 changes: 3 additions & 0 deletions client/helpers/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Accounts.ui.config({
passwordSignupFields: 'USERNAME_ONLY'
});
6 changes: 1 addition & 5 deletions client/templates/application/layout.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<template name="layout">
<div class="container">
<header class="navbar navbar-default" role="navigation">
<div class="navbar-header">
<a class="navbar-brand" href="{{pathFor 'postsList'}}">Microscope</a>
</div>
</header>
{{> header}}
<div id="main">
{{> yield}}
</div>
Expand Down
18 changes: 18 additions & 0 deletions client/templates/includes/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<template name="header">
<nav class="navbar navbar-default" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navigation">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="{{pathFor 'postsList'}}">Microscope</a>
</div>
<div class="collapse navbar-collapse" id="navigation">
<ul class="nav navbar-nav navbar-right">
{{> loginButtons}}
</ul>
</div>
</nav>
</template>

1 comment on commit 22c0d6d

@Vivais
Copy link

@Vivais Vivais commented on 22c0d6d Dec 4, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Please sign in to comment.