Readme, quick bootstrapping, login, ember-data check

sdfsdf
This commit is contained in:
Matthew Dillon 2015-01-12 16:41:36 -09:00
parent 978dacb16e
commit 0e16d2b0f4
22 changed files with 189 additions and 9 deletions

3
app/templates/about.hbs Normal file
View file

@ -0,0 +1,3 @@
<div class="about">
<p>This is some information about hymenobacter.info</p>
</div>

View file

@ -1,3 +1,25 @@
<h2 id="title">Welcome to Ember.js</h2>
<div class="flakes-frame">
<div class="flakes-navigation">
<ul>
{{#link-to 'genera' tagName='li' href=false}}
{{#link-to 'genera'}}Genera{{/link-to}}
{{/link-to}}
{{#link-to 'about' tagName='li' href=false}}
{{#link-to 'about'}}About{{/link-to}}
{{/link-to}}
</ul>
{{outlet}}
<p class="foot">
{{#if session.isAuthenticated}}
<a {{ action 'invalidateSession' }}>Logout</a>
{{else}}
{{#link-to 'login'}}Login{{/link-to}}
{{/if}}
</p>
</div>
<div class="flakes-content">
<div class="view-wrap">
{{outlet}}
</div>
</div>
</div>

7
app/templates/genera.hbs Normal file
View file

@ -0,0 +1,7 @@
<h1>Genera</h1>
<ul>
{{#each}}
<li>{{genusName}}</li>
{{/each}}
</ul>

1
app/templates/index.hbs Normal file
View file

@ -0,0 +1 @@
Welcome

13
app/templates/login.hbs Normal file
View file

@ -0,0 +1,13 @@
{{#if loggedIn}}
<p>You are already logged in!</p>
{{else}}
<form {{action "authenticate" on="submit"}}>
<h2>Log In</h2>
{{input value=identification type="text" placeholder="Username"}}
{{input value=password type="password" placeholder="Password"}}
{{input class="button-gray" type="submit" value="Log In"}}
</form>
{{#if errorMessage}}
<div class="flakes-message error">{{errorMessage}}</div>
{{/if}}
{{/if}}