plugins: show host owner in glance strip for admin users
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -538,6 +538,7 @@ async def start(
|
||||
"name": hostname,
|
||||
"plugins": list(host.plugin_data.keys()),
|
||||
"is_owner": _can_own_host(current_user, host),
|
||||
"owner": host.owner,
|
||||
})
|
||||
|
||||
tmpl = env.get_template("plugins.html")
|
||||
|
||||
@@ -418,6 +418,9 @@
|
||||
|
||||
<div class="glance-strip" id="glance-{{ host.name }}">
|
||||
<span class="glance-loading">—</span>
|
||||
{% if current_user and current_user.admin and host.owner %}
|
||||
<span class="glance-chip neutral">{{ host.owner }}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="host-right">
|
||||
|
||||
Reference in New Issue
Block a user