mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 16:24:55 +00:00
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);
|
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" })}
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user