mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 19:22:46 +08:00
UX: Make posts columns link to the last post in a topic.
This commit is contained in:
parent
b175abbfb5
commit
454c634b7e
|
@ -32,7 +32,7 @@ export default Ember.Component.extend({
|
||||||
|
|
||||||
render: function(buffer) {
|
render: function(buffer) {
|
||||||
var postsCount = this.get('topic.posts_count'),
|
var postsCount = this.get('topic.posts_count'),
|
||||||
url = this.get('topic.lastUnreadUrl');
|
url = this.get('topic.lastPostUrl');
|
||||||
|
|
||||||
buffer.push("<a href='" + url + "' class='badge-posts " + this.get('likesHeat') + "'>");
|
buffer.push("<a href='" + url + "' class='badge-posts " + this.get('likesHeat') + "'>");
|
||||||
buffer.push(Discourse.Formatter.number(postsCount));
|
buffer.push(Discourse.Formatter.number(postsCount));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user