Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

48 lines (31 sloc) 1.024 kb
<link rel="stylesheet" href="css/style.css">
<script src="js/handlebars.js"></script>
<script src="js/jquery-1.9.1.min.js"></script>
<script src="js/ember-1.0.0-rc.2.js"></script>
<script type="text/x-handlebars" data-template-name='index'>
<h1>Notifications</h1>
<div id="right-side-view">
{{outlet 'rightside'}}
</div>
{{yield}}
</script>
<script type="text/x-handlebars" data-template-name='notifications'>
<ul class="notifications">
{{#each notification in controller}}
<li {{bindAttr class="notification.subject.type"}}>
{{#linkTo notification notification}}
<p>{{notification.subject.title}}</p>
{{/linkTo}}
</li>
{{/each}}
</ul>
</script>
<script type="text/x-handlebars" data-template-name='notification'>
<p>{{subject.title}}</p>
<p>{{subject.type}}</p>
<p>{{updated_at}}</p>
<p>{{login}}</p>
<img {{bindAttr src=data.user.avatar_url}}>
<p>{{data.body}}</p>
</script>
<script type="text/javascript" src="js/app.js"></script>
Jump to Line
Something went wrong with that request. Please try again.