Skip to content

Instantly share code, notes, and snippets.

@riking
Created August 26, 2015 02:24
Show Gist options
  • Save riking/229e7b745dca9878cafd to your computer and use it in GitHub Desktop.
Save riking/229e7b745dca9878cafd to your computer and use it in GitHub Desktop.
const QueryRowContentComponent = Ember.Component.extend({
tagName: "tr",
render() {
//....
if (user) {
buffer.push(runTemplate("explorer/user", {user: user}))
}
//...
}
});
// file: templates/explorer/user.hbs
<a href="/users/{{user.username}}/activity">{{avatar user imageSize="tiny"}} {{user.username}}</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment