FIX: Add topic status to flagged topics list

Previously at a glance it was impossible to tell if a topic was closed
before digging deeper.
This commit is contained in:
Robin Ward 2019-01-09 10:59:35 -05:00
parent 1f12a377fa
commit 8b3ddcf646
2 changed files with 13 additions and 3 deletions

View File

@ -16,7 +16,10 @@
{{plugin-outlet name="flagged-topic-row" noTags=true args=(hash topic=ft.topic)}}
<td class="topic-title">
<a href={{ft.topic.relative_url}} target="_blank">{{replace-emoji ft.topic.fancy_title}}</a>
<div class='combined-title'>
{{topic-status topic=ft.topic}}
<a href={{ft.topic.relative_url}} target="_blank">{{replace-emoji ft.topic.fancy_title}}</a>
</div>
</td>
<td class="flag-counts">
{{#each ft.flag_counts as |fc|}}

View File

@ -191,7 +191,7 @@
}
}
.flag-counts {
div.flag-counts {
display: inline-block;
margin-right: 0.5em;
@ -204,9 +204,16 @@
.flagged-topic {
td.topic-title {
width: 400px;
.combined-title {
.d-icon {
margin-right: 0.5em;
}
display: flex;
}
a {
width: 400px;
display: inline-block;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;