Created
August 31, 2014 09:53
-
-
Save magmel48/bab14045adf4d050e199 to your computer and use it in GitHub Desktop.
index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<base href='http://courseware.codeschool.com/ember/' /> | |
<link href='bootstrap.css' rel='stylesheet' /> | |
<link href='application.css' rel='stylesheet' /> | |
<script src='jquery.js'></script> | |
<script src='handlebars.js'></script> | |
<script src='ember.js'></script> | |
<script src='ember-data.js'></script> | |
<script src='app.js'></script> | |
</head> | |
<body> | |
<script type='text/x-handlebars' data-template-name='application'> | |
<div class='navbar navbar-default'> | |
<div class='container'> | |
{{#link-to 'index' class='navbar-brand'}}<img src='images/logo.png' alt='logo' height='34' width='224' />{{/link-to}} | |
<ul class='nav navbar-nav navbar-right'> | |
{{#link-to 'index' tagName='li'}}Home{{/link-to}} | |
{{#link-to 'products' tagName='li'}}Products{{/link-to}} | |
{{#link-to 'contacts' tagName='li'}}Contacts{{/link-to}} | |
</ul> | |
</div> | |
</div> | |
<div class='container'> | |
{{outlet}} | |
</div> | |
<footer class='container'> | |
<hr /> | |
<p class='pull-left'>© 2013 The Flint & Flame</p> | |
<p class='pull-right'>{{#link-to 'credits'}}Credits{{/link-to}}</p> | |
</footer> | |
</script> | |
<script type='text/x-handlebars' data-template-name='index'> | |
<div class='jumbotron'> | |
<h1>Welcome to The Flint & Flame!</h1> | |
<p class='tagline'> | |
<img {{bind-attr src='logo'}} alt='Logo' /> | |
Everything you need to make it through the winter. | |
</p> | |
<p> | |
{{#link-to 'products' class='btn btn-primary btn-lg'}} | |
Browse All {{productsCount}} Items » | |
{{/link-to}} | |
</p> | |
</div> | |
<p class='pull-right text-muted'>Rendered on {{time}}</p> | |
</script> | |
<script type='text/x-handlebars' data-template-name='contacts/index'> | |
<div class='row'> | |
<img {{bind-attr src='avatar'}} alt='Avatar' class='img-thumbnail col-sm-4'/> | |
<div class='col-sm-8'> | |
<h1>About The Fire Sprites</h1> | |
<p>Contact {{contactName}} for more info!</p> | |
<p>Current Status: {{open}}.</p> | |
</div> | |
</div> | |
</script> | |
<script type='text/x-handlebars' data-template-name='credits'> | |
<h1>Thanks for the Help!</h1> | |
<p>This site would not be possible without the hardworking Ember Core Team!</p> | |
</script> | |
<script type='text/x-handlebars' data-template-name='products'> | |
<div class='row'> | |
<div class='col-sm-3'> | |
<div class='list-group'> | |
{{#each}} | |
{{#link-to 'product' this classNames='list-group-item'}} | |
{{title}} | |
{{/link-to}} | |
{{/each}} | |
</div> | |
</div> | |
<div class='col-sm-9'> | |
{{outlet}} | |
</div> | |
</div> | |
</script> | |
<script type='text/x-handlebars' data-template-name='product'> | |
<div class='row'> | |
<div class='col-sm-7'> | |
<h2>{{title}}</h2> | |
<h3 class='text-success'>${{price}}</h3> | |
<p class='text-muted'>{{description}}</p> | |
<h3>Reviews</h3> | |
<ul> | |
{{#each reviews}} | |
<li>{{text}}</li> | |
{{else}} | |
<li>No reviews yet</li> | |
{{/each}} | |
</ul> | |
</div> | |
<div class='col-sm-5'> | |
<img {{bind-attr src='image'}} class='img-thumbnail img-rounded'/> | |
</div> | |
</div> | |
</script> | |
<script type='text/x-handlebars' data-template-name='products/index'> | |
<p class='text-muted'>Choose a product from those on the left!</p> | |
</script> | |
<script type='text/x-handlebars' data-template-name='contacts'> | |
<div class='row'> | |
<div class='col-sm-9'> | |
{{outlet}} | |
</div> | |
<div class='col-sm-3'> | |
<div class='list-group'> | |
{{#each}} | |
{{#link-to 'contact' this classNames='list-group-item'}} | |
{{name}} | |
{{/link-to}} | |
{{/each}} | |
</div> | |
</div> | |
</div> | |
</script> | |
<script type='text/x-handlebars' data-template-name='contact'> | |
<div class='row'> | |
<div class='col-sm-5'> | |
<img {{bind-attr src='avatar' alt='name'}} class='img-thumbnail img-rounded'/> | |
</div> | |
<div class='col-sm-7'> | |
<h2>{{name}}</h2> | |
<p>{{about}}</p> | |
</div> | |
</div> | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment