Skip to content
Extraits de code Groupes Projets
Valider 633d65fe rédigé par Steffen van Bergerem's avatar Steffen van Bergerem
Parcourir les fichiers

Merge branch 'stable' into develop

parents 85f9a0ea f1d6e944
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -83,6 +83,7 @@ With the port to Bootstrap 3, app/views/terms/default.haml has a new structure. ...@@ -83,6 +83,7 @@ With the port to Bootstrap 3, app/views/terms/default.haml has a new structure.
* Implement NodeInfo [#6239](https://github.com/diaspora/diaspora/pull/6239) * 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) * 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 # 0.5.2.0
......
...@@ -20,6 +20,7 @@ app.views.Hovercard = app.views.Base.extend({ ...@@ -20,6 +20,7 @@ app.views.Hovercard = app.views.Base.extend({
// cache some element references // cache some element references
this.avatar = this.$('.avatar'); this.avatar = this.$('.avatar');
this.avatarLink = this.$("a.person_avatar");
this.dropdown = this.$('.dropdown_list'); this.dropdown = this.$('.dropdown_list');
this.dropdown_container = this.$('#hovercard_dropdown_container'); this.dropdown_container = this.$('#hovercard_dropdown_container');
this.hashtags = this.$('.hashtags'); this.hashtags = this.$('.hashtags');
...@@ -115,6 +116,7 @@ app.views.Hovercard = app.views.Base.extend({ ...@@ -115,6 +116,7 @@ app.views.Hovercard = app.views.Base.extend({
var self = this; var self = this;
this.avatar.attr('src', person.avatar); this.avatar.attr('src', person.avatar);
this.avatarLink.attr("href", person.url);
this.person_link.attr('href', person.url); this.person_link.attr('href', person.url);
this.person_link.text(person.name); this.person_link.text(person.name);
this.person_handle.text(person.handle); this.person_handle.text(person.handle);
......
<div id="hovercard"> <div id="hovercard">
<img class="avatar"> <a class='person_avatar'>
<img class="avatar">
</a>
<h4> <h4>
<a class="person"></a> <a class="person"></a>
</h4> </h4>
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter