hovercards everywhere (comments, likes, top left sidebar stream summary thingy...)

Say a word if you think it's getting too much...
This commit is contained in:
Jonne Haß 2013-01-01 22:58:45 +01:00
parent fde28e9bea
commit beb32ce91f
3 changed files with 7 additions and 5 deletions

View file

@ -7,9 +7,11 @@ Handlebars.registerHelper('imageUrl', function(path){
});
Handlebars.registerHelper('linkToPerson', function(context, block) {
var html = "<a href=\"/people/" + context.guid + "\" class=\"author-name\">";
html+= block.fn(context);
html+= "</a>";
var html = "<a href=\"/people/" + context.guid + "\" class=\"author-name ";
html += Handlebars.helpers.hovercardable(context);
html += "\">";
html += block.fn(context);
html += "</a>";
return html
});

View file

@ -13,7 +13,7 @@
</div>
<div class="bd">
<a href="/people/{{author.guid}}" class="author author-name">
<a href="/people/{{author.guid}}" class="author author-name {{hovercardable this}}">
{{author.name}}
</a>

View file

@ -15,7 +15,7 @@
{{#each likes}}
{{#with author}}
<a href="/people/{{guid}}">
<a href="/people/{{guid}}" class="{{hovercardable this}}">
<img src="{{avatar.small}}" class="avatar micro" title="{{name}}"/>
</a>
{{/with}}