mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +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 {
|
class DomainDashboardHandler extends ManageHandler {
|
||||||
async get() {
|
async get() {
|
||||||
|
const owner = await user.getById(this.domain._id, this.domain.owner);
|
||||||
this.response.template = 'domain_dashboard.html';
|
this.response.template = 'domain_dashboard.html';
|
||||||
this.response.body = { domain: this.domain };
|
this.response.body = { domain: this.domain, owner };
|
||||||
}
|
}
|
||||||
|
|
||||||
async postInitDiscussionNode({ domainId }) {
|
async postInitDiscussionNode({ domainId }) {
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
<dl class="large horizontal">
|
<dl class="large horizontal">
|
||||||
<dt>{{ _('Avatar') }}</dt><dd><img src="{{ avatarUrl(domain.avatar) }}" width="32" height="32"></dd>
|
<dt>{{ _('Avatar') }}</dt><dd><img src="{{ avatarUrl(domain.avatar) }}" width="32" height="32"></dd>
|
||||||
<dt>{{ _('Name') }}</dt><dd>{{ domain.name }}</dd>
|
<dt>{{ _('Name') }}</dt><dd>{{ domain.name }}</dd>
|
||||||
|
<dt>{{ _('Owner') }}</dt><dd>{{ user.render_inline(owner) }}</dd>
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user