forked from mystiq/hydrogen-web
Make the tiles link to details
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
65b1a1958a
commit
4784bcc590
1 changed files with 5 additions and 4 deletions
|
@ -3,9 +3,10 @@ import {AvatarView} from "../../AvatarView.js";
|
||||||
|
|
||||||
export class MemberTileView extends TemplateView {
|
export class MemberTileView extends TemplateView {
|
||||||
render(t, vm) {
|
render(t, vm) {
|
||||||
return t.li({ className: "MemberTileView" }, [
|
return t.li({ className: "MemberTileView" }, t.a({href: vm.detailsUrl}, [
|
||||||
t.view(new AvatarView(vm, 32)),
|
t.view(new AvatarView(vm, 32)),
|
||||||
t.div({ className: "MemberTileView_name" }, (vm) => vm.name),
|
t.div({ className: "MemberTileView_name" }, (vm) => vm.name),
|
||||||
]);
|
])
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue