diff --git a/app/assets/stylesheets/stream_element.scss b/app/assets/stylesheets/stream_element.scss
index 3c1ca3cc0..a0f6a4d83 100644
--- a/app/assets/stylesheets/stream_element.scss
+++ b/app/assets/stylesheets/stream_element.scss
@@ -53,12 +53,12 @@
width: 50px;
}
}
- .author {
+ .author-name {
font-weight: bold;
margin-bottom: 4px;
unicode-bidi: bidi-override;
}
- a.author { color: $blue; }
+ a.author-name { color: $blue; }
.feedback {
margin-top: 5px;
font-size: 11px;
diff --git a/app/assets/templates/comment_tpl.jst.hbs b/app/assets/templates/comment_tpl.jst.hbs
index 3196cad33..b2c54c698 100644
--- a/app/assets/templates/comment_tpl.jst.hbs
+++ b/app/assets/templates/comment_tpl.jst.hbs
@@ -20,16 +20,14 @@
{{/if}}
- {{#with author}}
-
- {{name}}
-
- {{/with}}
+ {{#linkToAuthor author}}
+ {{name}}
+ {{/linkToAuthor}}
-
+
{{current_user.name}}
diff --git a/app/assets/templates/likes-info_tpl.jst.hbs b/app/assets/templates/likes-info_tpl.jst.hbs
index c9cfceee1..71206eb50 100644
--- a/app/assets/templates/likes-info_tpl.jst.hbs
+++ b/app/assets/templates/likes-info_tpl.jst.hbs
@@ -12,11 +12,9 @@
{{else}}
{{#each likes}}
- {{#with author}}
-
-
-
- {{/with}}
+ {{#linkToAuthor author}}
+ {{{personImage this 'small' 'micro'}}}
+ {{/linkToAuthor}}
{{/each}}
{{/unless}}
diff --git a/app/assets/templates/reshare_tpl.jst.hbs b/app/assets/templates/reshare_tpl.jst.hbs
index ef7b821f2..a1a661658 100644
--- a/app/assets/templates/reshare_tpl.jst.hbs
+++ b/app/assets/templates/reshare_tpl.jst.hbs
@@ -6,14 +6,16 @@
{{#with root}}
-
+ {{{personImage author 'small'}}}
{{/with}}
{{#with root}}
-
{{author.name}}
+ {{#linkToAuthor author}}
+ {{name}}
+ {{/linkToAuthor}}
-
diff --git a/app/assets/templates/stream-element_tpl.jst.hbs b/app/assets/templates/stream-element_tpl.jst.hbs
index 4ed0daeb9..f3a96b1a8 100644
--- a/app/assets/templates/stream-element_tpl.jst.hbs
+++ b/app/assets/templates/stream-element_tpl.jst.hbs
@@ -37,9 +37,9 @@
{{/if}}
- {{#with author}}
-
{{name}}
- {{/with}}
+ {{#linkToAuthor author}}
+ {{name}}
+ {{/linkToAuthor}}
-
diff --git a/features/step_definitions/hovercard_steps.rb b/features/step_definitions/hovercard_steps.rb
index ab086fb10..c76e481e7 100644
--- a/features/step_definitions/hovercard_steps.rb
+++ b/features/step_definitions/hovercard_steps.rb
@@ -16,6 +16,6 @@ end
When (/^I hover "([^"]*)" within "([^"]*)"$/) do |name, selector|
with_scope(selector) do
- find(".author", text: name).hover
+ find(".author-name", text: name).hover
end
end