mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
core&ui: domain_dashboard: show owner
This commit is contained in:
1 parent
c57b304576
commit
f5f82cd513
2 files changed
+3
-1
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user