diff --git a/app/assets/javascripts/discourse/app/components/directory-item.hbs b/app/assets/javascripts/discourse/app/components/directory-item.hbs index e05a5367c79..406c25d7bc3 100644 --- a/app/assets/javascripts/discourse/app/components/directory-item.hbs +++ b/app/assets/javascripts/discourse/app/components/directory-item.hbs @@ -1,17 +1,17 @@ -
+
{{#each this.columns as |column|}} {{#if (directory-column-is-user-field column=column)}} -
+
{{column.name}} {{directory-item-user-field-value item=this.item column=column}}
{{else}} -
+
{{#if column.icon}} @@ -27,7 +27,7 @@ {{/each}} {{#if this.showTimeRead}} -
+
{{i18n "directory.time_read"}} diff --git a/app/assets/javascripts/discourse/app/components/directory-item.js b/app/assets/javascripts/discourse/app/components/directory-item.js index 034bf77edaa..a5dfaaa971a 100644 --- a/app/assets/javascripts/discourse/app/components/directory-item.js +++ b/app/assets/javascripts/discourse/app/components/directory-item.js @@ -1,5 +1,6 @@ import Component from "@ember/component"; import { + attributeBindings, classNameBindings, classNames, tagName, @@ -9,7 +10,10 @@ import { propertyEqual } from "discourse/lib/computed"; @tagName("div") @classNames("directory-table__row") @classNameBindings("me") +@attributeBindings("role") export default class DirectoryItem extends Component { + role = "row"; + @propertyEqual("item.user.id", "currentUser.id") me; columns = null; } diff --git a/app/assets/javascripts/discourse/app/components/user-info.hbs b/app/assets/javascripts/discourse/app/components/user-info.hbs index 7f2feeb0a77..91d1db165a8 100644 --- a/app/assets/javascripts/discourse/app/components/user-info.hbs +++ b/app/assets/javascripts/discourse/app/components/user-info.hbs @@ -13,7 +13,11 @@