FIX: correctly shows link to post number when editing
This commit is contained in:
parent
900f37e5a9
commit
cdded801c5
|
@ -22,20 +22,20 @@ export default Ember.Component.extend({
|
|||
return this._formatReplyToTopic(opts.topicLink);
|
||||
}
|
||||
case EDIT:
|
||||
if (opts.userAvatar && opts.userLink && opts.topicLink) {
|
||||
if (opts.userAvatar && opts.userLink && opts.postLink) {
|
||||
return this._formatEditUserPost(
|
||||
opts.userAvatar,
|
||||
opts.userLink,
|
||||
opts.topicLink,
|
||||
opts.postLink,
|
||||
opts.originalUser
|
||||
);
|
||||
}
|
||||
};
|
||||
},
|
||||
|
||||
_formatEditUserPost(userAvatar, userLink, topicLink, originalUser) {
|
||||
_formatEditUserPost(userAvatar, userLink, postLink, originalUser) {
|
||||
let editTitle = `
|
||||
<a class="topic-link" href="${topicLink.href}">${topicLink.anchor}</a>
|
||||
<a class="post-link" href="${postLink.href}">${postLink.anchor}</a>
|
||||
${userAvatar}
|
||||
<span class="username">${userLink.anchor}</span>
|
||||
${iconHTML("mail-forward", { class: "reply-to-glyph" })}
|
||||
|
|
|
@ -105,12 +105,12 @@
|
|||
align-items: center;
|
||||
width: auto;
|
||||
max-width: 100%;
|
||||
|
||||
|
||||
.avatar {
|
||||
width: 20px;
|
||||
}
|
||||
|
||||
.topic-link, .user-link {
|
||||
.topic-link, .user-link, .post-link {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
|
|
Loading…
Reference in New Issue