FIX: correctly shows link to post number when editing

This commit is contained in:
Joffrey JAFFEUX 2018-02-06 22:17:27 +01:00 committed by GitHub
parent 900f37e5a9
commit cdded801c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -22,20 +22,20 @@ export default Ember.Component.extend({
return this._formatReplyToTopic(opts.topicLink); return this._formatReplyToTopic(opts.topicLink);
} }
case EDIT: case EDIT:
if (opts.userAvatar && opts.userLink && opts.topicLink) { if (opts.userAvatar && opts.userLink && opts.postLink) {
return this._formatEditUserPost( return this._formatEditUserPost(
opts.userAvatar, opts.userAvatar,
opts.userLink, opts.userLink,
opts.topicLink, opts.postLink,
opts.originalUser opts.originalUser
); );
} }
}; };
}, },
_formatEditUserPost(userAvatar, userLink, topicLink, originalUser) { _formatEditUserPost(userAvatar, userLink, postLink, originalUser) {
let editTitle = ` let editTitle = `
<a class="topic-link" href="${topicLink.href}">${topicLink.anchor}</a> <a class="post-link" href="${postLink.href}">${postLink.anchor}</a>
${userAvatar} ${userAvatar}
<span class="username">${userLink.anchor}</span> <span class="username">${userLink.anchor}</span>
${iconHTML("mail-forward", { class: "reply-to-glyph" })} ${iconHTML("mail-forward", { class: "reply-to-glyph" })}

View File

@ -110,7 +110,7 @@
width: 20px; width: 20px;
} }
.topic-link, .user-link { .topic-link, .user-link, .post-link {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;