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:
parent
fde28e9bea
commit
beb32ce91f
3 changed files with 7 additions and 5 deletions
|
|
@ -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
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -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}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue