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:
2026-05-08 09:12:02 -04:00
parent 4349ae217a
commit 172f6e950f
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -538,6 +538,7 @@ async def start(
"name": hostname, "name": hostname,
"plugins": list(host.plugin_data.keys()), "plugins": list(host.plugin_data.keys()),
"is_owner": _can_own_host(current_user, host), "is_owner": _can_own_host(current_user, host),
"owner": host.owner,
}) })
tmpl = env.get_template("plugins.html") tmpl = env.get_template("plugins.html")
+3
View File
@@ -418,6 +418,9 @@
<div class="glance-strip" id="glance-{{ host.name }}"> <div class="glance-strip" id="glance-{{ host.name }}">
<span class="glance-loading"></span> <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>
<div class="host-right"> <div class="host-right">