core&ui: domain_dashboard: show owner

This commit is contained in:
undefined committed 2023-01-31 14:52:59 +08:00
1 parent c57b304576
commit f5f82cd513
2 files changed
+3 -1

No files matched your search

+2 -1
View File
@@ -111,8 +111,9 @@ class DomainEditHandler extends ManageHandler {
class DomainDashboardHandler extends ManageHandler {
async get() {
const owner = await user.getById(this.domain._id, this.domain.owner);
this.response.template = 'domain_dashboard.html';
this.response.body = { domain: this.domain };
this.response.body = { domain: this.domain, owner };
}
async postInitDiscussionNode({ domainId }) {
@@ -22,6 +22,7 @@
<dl class="large horizontal">
<dt>{{ _('Avatar') }}</dt><dd><img src="{{ avatarUrl(domain.avatar) }}" width="32" height="32"></dd>
<dt>{{ _('Name') }}</dt><dd>{{ domain.name }}</dd>
<dt>{{ _('Owner') }}</dt><dd>{{ user.render_inline(owner) }}</dd>
</dl>
</div>
</div>