Commit f1d6e944 authored by Anton Tkachov's avatar Anton Tkachov Committed by Steffen van Bergerem

Issue #6281: add url to hovercard avatar

closes #6297
parent 78b0fbbe
......@@ -19,6 +19,7 @@
* Implement NodeInfo [#6239](https://github.com/diaspora/diaspora/pull/6239)
* Display original author on reshares of NSFW posts [#6270](https://github.com/diaspora/diaspora/pull/6270)
* Use avatars in hovercards as links to the profile [#6297](https://github.com/diaspora/diaspora/pull/6297)
# 0.5.2.0
......
......@@ -20,6 +20,7 @@ app.views.Hovercard = app.views.Base.extend({
// cache some element references
this.avatar = this.$('.avatar');
this.avatarLink = this.$("a.person_avatar");
this.dropdown = this.$('.dropdown_list');
this.dropdown_container = this.$('#hovercard_dropdown_container');
this.hashtags = this.$('.hashtags');
......@@ -115,6 +116,7 @@ app.views.Hovercard = app.views.Base.extend({
var self = this;
this.avatar.attr('src', person.avatar);
this.avatarLink.attr("href", person.url);
this.person_link.attr('href', person.url);
this.person_link.text(person.name);
this.person_handle.text(person.handle);
......
<div id="hovercard">
<img class="avatar">
<a class='person_avatar'>
<img class="avatar">
</a>
<h4>
<a class="person"></a>
</h4>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment