# Show "updated topics above this line" in the topic list?

**URL:** <https://meta.discourse.org/t/show-updated-topics-above-this-line-in-the-topic-list/48641>\
**Category:** Feature\
**Created:** [2016年八月15日 07:03 UTC](https://meta.discourse.org/t/show-updated-topics-above-this-line-in-the-topic-list/48641 "2016-08-15T07:03:29Z")\
**Posts on this page:** 18\
**Page:** 2

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [2016年八月30日 20:51 UTC](https://meta.discourse.org/t/show-updated-topics-above-this-line-in-the-topic-list/48641/21 "2016-08-30T20:51:02Z")

</div>

> [@cpradio](#):
>
> your PR should be good to go

The only suggestion I can make is due to my anticipation of “bike shedding” over the copy.

i.e. Is “new” above or below?

Maybe bracket the I18n with unicode up arrows (`\2191`) ?

---

<div class="post-metadata">

**Author:** ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
**Post date:** [2016年八月30日 20:56 UTC](https://meta.discourse.org/t/show-updated-topics-above-this-line-in-the-topic-list/48641/22 "2016-08-30T20:56:45Z")

</div>

> [@Mittineague](#):
>
> The only suggestion I can make is due to my anticipation of “bike shedding” over the copy.
> 
> i.e. Is “new” above or below?

Nah, that is simple enough for people to change via the Admin \> Customize \> Text area. So no need to bikeshed that before it is implemented. If they see a lot of people leaning towards a certain phrase, updating the default won’t be difficult.

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [2016年八月30日 22:05 UTC](https://meta.discourse.org/t/show-updated-topics-above-this-line-in-the-topic-list/48641/23 "2016-08-30T22:05:42Z")

</div>

> [@awole20](#):
>
> Here’s a quick css test in chrome using the following:
> 
> .last-visit + tr::after {  
> content: “new”;  
> position: absolute;  
> left: 50%;  
> margin-top: -10px;  
> padding: 0 10px;  
> }

> [@Mittineague](#):
>
> Looks like a winner to me !

> [@cpradio](#):
>
> That should actually do nicely.

Looks like it’s a winner!

 ![](https://global.discourse-cdn.com/meta/original/3X/7/8/78af1df28e6e9a93759cd7d3e9c6cd10038a5759.png)

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2016年八月30日 22:07 UTC](https://meta.discourse.org/t/show-updated-topics-above-this-line-in-the-topic-list/48641/24 "2016-08-30T22:07:52Z")

</div>

Nice work! Looks like localization is the only stumbling block now, but this should be good enough to get started!

---

<div class="post-metadata">

**Author:** ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
**Post date:** [2016年八月30日 22:09 UTC](https://meta.discourse.org/t/show-updated-topics-above-this-line-in-the-topic-list/48641/25 "2016-08-30T22:09:12Z")

</div>

> [@codinghorror](#):
>
> Nice work! Looks like localization is the only stumbling block now, but this should be good enough to get started!

@Falco’s PR handles localization too using a data-attribute 🙂

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [2016年八月30日 22:09 UTC](https://meta.discourse.org/t/show-updated-topics-above-this-line-in-the-topic-list/48641/26 "2016-08-30T22:09:40Z")

</div>

> [@codinghorror](#):
>
> Nice work! Looks like localization is the only stumbling block now, but this should be good enough to get started!

Yeah! Actually it already is localizable since it reads from a data attributte from the tr element.

If @sam can just point me a general direction to get this string set we’re done.

PS: I think it’s around here:

[https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/components/topic-list-item.js.es6#L51](https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/components/topic-list-item.js.es6#L51)

---

<div class="post-metadata">

**Author:** ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
**Post date:** [2016年八月30日 22:15 UTC](https://meta.discourse.org/t/show-updated-topics-above-this-line-in-the-topic-list/48641/27 "2016-08-30T22:15:07Z")

</div>

Yep, And I think you can get away with changing

```plaintext
  attributeBindings: ['data-topic-id'],
  'data-topic-id': Em.computed.alias('topic.id'),

```

to

```plaintext
  attributeBindings: ['data-topic-id', 'data-last-visit-text'],
  'data-topic-id': Em.computed.alias('topic.id'),
  'data-last-visit-text': I18n.t('your_variable_here'),

```

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [2016年八月30日 22:21 UTC](https://meta.discourse.org/t/show-updated-topics-above-this-line-in-the-topic-list/48641/28 "2016-08-30T22:21:08Z")

</div>

Nice! I’m gonna test this later and put into the PR.

---

<div class="post-metadata">

**Author:** ![Zoltan\_Szathmary](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zoltan_szathmary/32/53277_2.png) [@Zoltan\_Szathmary](https://meta.discourse.org/u/Zoltan_Szathmary)\
**Post date:** [2016年九月1日 08:40 UTC](https://meta.discourse.org/t/show-updated-topics-above-this-line-in-the-topic-list/48641/29 "2016-09-01T08:40:41Z")

</div>

Ok, this is nice and all but is there a way to remove it? We really don’t need that red line and might be confusing to our users as they don’t know what it’s for.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2016年九月1日 08:56 UTC](https://meta.discourse.org/t/show-updated-topics-above-this-line-in-the-topic-list/48641/30 "2016-09-01T08:56:18Z")

</div>

You can set it to whatever you want via CSS of course.

---

<div class="post-metadata">

**Author:** ![featheredtoast](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/featheredtoast/32/116994_2.png) [@featheredtoast](https://meta.discourse.org/u/featheredtoast)\
**Post date:** [2016年九月1日 20:36 UTC](https://meta.discourse.org/t/show-updated-topics-above-this-line-in-the-topic-list/48641/31 "2016-09-01T20:36:39Z")

</div>

Any update on this? I’ve been [following on GH](https://github.com/discourse/discourse/pull/4428) and it appears as though it’s diverged a little bit, in which @sam is reviewing the PR before it’s been updated with the above suggestions…

---

<div class="post-metadata">

**Author:** ![Kevin\_McKinney](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kevin_mckinney/32/54497_2.png) [@Kevin\_McKinney](https://meta.discourse.org/u/Kevin_McKinney)\
**Post date:** [2016年九月13日 18:33 UTC](https://meta.discourse.org/t/show-updated-topics-above-this-line-in-the-topic-list/48641/32 "2016-09-13T18:33:31Z")

</div>

> [@Zoltan\_Szathmary](#):
>
> Ok, this is nice and all but is there a way to remove it? We really don’t need that red line and might be confusing to our users as they don’t know what it’s for.

I’m not very proficient with CSS but this seemed to remove it on our site (in Settings \> Customize \> CSS/HTML)

```
.topic-list>tbody>tr.last-visit {
    border-bottom: inherit;
}
```

If anyone who knows more about CSS and customization (probably everyone looking at this post) sees anything wrong with that, feel free to correct me!

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [2016年九月27日 15:52 UTC](https://meta.discourse.org/t/show-updated-topics-above-this-line-in-the-topic-list/48641/33 "2016-09-27T15:52:07Z")

</div>

Text is merged in master! Thanks @tgxworld for the tr approach, works wonders!

 ![](https://global.discourse-cdn.com/meta/original/3X/8/1/81e36dc14b3f74fac29ebf5460dda685dd584116.png)

---

<div class="post-metadata">

**Author:** ![elijah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elijah/32/104055_2.png) [@elijah](https://meta.discourse.org/u/elijah)\
**Post date:** [2016年十月5日 00:10 UTC](https://meta.discourse.org/t/show-updated-topics-above-this-line-in-the-topic-list/48641/34 "2016-10-05T00:10:53Z")

</div>

![](https://global.discourse-cdn.com/meta/original/3X/3/1/31d3cb0d97eacadac630fe8da5bfd32c93edef3c.png)

Somehow I have two of them now.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2016年十月5日 00:21 UTC](https://meta.discourse.org/t/show-updated-topics-above-this-line-in-the-topic-list/48641/35 "2016-10-05T00:21:16Z")

</div>

Related to recent work @falco did – it can also show up in Suggested Topics accidentally now.

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2016年十月5日 04:40 UTC](https://meta.discourse.org/t/show-updated-topics-above-this-line-in-the-topic-list/48641/36 "2016-10-05T04:40:09Z")

</div>

should be fixed per:

[https://github.com/discourse/discourse/commit/601a96333ae5c40dcb79edf704460813d633889a](https://github.com/discourse/discourse/commit/601a96333ae5c40dcb79edf704460813d633889a)

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2017年十二月2日 10:12 UTC](https://meta.discourse.org/t/show-updated-topics-above-this-line-in-the-topic-list/48641/37 "2017-12-02T10:12:47Z")

</div>

Been completed for quite a while!

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2017年十二月2日 10:12 UTC](https://meta.discourse.org/t/show-updated-topics-above-this-line-in-the-topic-list/48641/38 "2017-12-02T10:12:50Z")

</div>



[上一頁](https://meta.discourse.org/t/show-updated-topics-above-this-line-in-the-topic-list/48641.md?page=1)
