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 {
|
||||
render(t, vm) {
|
||||
return t.li({ className: "MemberTileView" }, [
|
||||
t.view(new AvatarView(vm, 32)),
|
||||
t.div({ className: "MemberTileView_name" }, (vm) => vm.name),
|
||||
]);
|
||||
return t.li({ className: "MemberTileView" }, t.a({href: vm.detailsUrl}, [
|
||||
t.view(new AvatarView(vm, 32)),
|
||||
t.div({ className: "MemberTileView_name" }, (vm) => vm.name),
|
||||
])
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue