|
|
@@ -548,6 +548,13 @@ a.signout:hover { color: var(--ink); border-color: var(--muted); }
|
|
|
|
margin-top: 0.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
|
|
|
margin-top: 0.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.settings-rail a:hover:not(.active) { background: #0f1829; color: var(--ink); }
|
|
|
|
.settings-rail a:hover:not(.active) { background: #0f1829; color: var(--ink); }
|
|
|
|
|
|
|
|
/* Per-container entries sit under "All containers": indented, one line each. */
|
|
|
|
|
|
|
|
.settings-rail a.rail-child { margin-left: 1.1rem; padding-top: 0.32rem; padding-bottom: 0.32rem; align-items: center; }
|
|
|
|
|
|
|
|
.settings-rail a.rail-child .rail-ico { font-size: 0.7rem; }
|
|
|
|
|
|
|
|
.settings-rail a.rail-child .rail-text { display: flex; align-items: baseline; min-width: 0; white-space: nowrap; }
|
|
|
|
|
|
|
|
.settings-rail a.rail-child .rail-name { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
|
|
|
|
|
|
|
|
.settings-rail a.rail-child .rail-inline-sub { flex-shrink: 0; }
|
|
|
|
|
|
|
|
.settings-rail a .rail-inline-sub { font-size: 0.7rem; color: var(--muted); font-weight: 400; margin-left: 0.4rem; }
|
|
|
|
.settings-rail a.active {
|
|
|
|
.settings-rail a.active {
|
|
|
|
background: rgba(96,165,250,0.12); color: var(--blue); font-weight: 600;
|
|
|
|
background: rgba(96,165,250,0.12); color: var(--blue); font-weight: 600;
|
|
|
|
}
|
|
|
|
}
|
|
|
@@ -1548,14 +1555,14 @@ def _render_settings_rail(
|
|
|
|
active = "active" if c.name == active_container else ""
|
|
|
|
active = "active" if c.name == active_container else ""
|
|
|
|
enabled_sub = "enabled" if c.enabled else "disabled"
|
|
|
|
enabled_sub = "enabled" if c.enabled else "disabled"
|
|
|
|
parts.append(
|
|
|
|
parts.append(
|
|
|
|
f'<a class="{active}" href="/containers/{_escape(c.name)}">'
|
|
|
|
f'<a class="rail-child {active}" href="/containers/{_escape(c.name)}">'
|
|
|
|
f'<span class="rail-ico" style="color:{_escape(color)};">●</span>'
|
|
|
|
f'<span class="rail-ico" style="color:{_escape(color)};">●</span>'
|
|
|
|
f'<span class="rail-text">{_escape(c.name)}'
|
|
|
|
f'<span class="rail-text"><span class="rail-name">{_escape(c.name)}</span>'
|
|
|
|
f'<span class="rail-sub">{enabled_sub} · max {c.max_error_count} err</span>'
|
|
|
|
f'<span class="rail-inline-sub">{enabled_sub}</span>'
|
|
|
|
f"</span></a>\n"
|
|
|
|
f"</span></a>\n"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
parts.append(
|
|
|
|
parts.append(
|
|
|
|
'<a href="/containers/new" style="color:var(--blue); font-weight:600;">'
|
|
|
|
'<a class="rail-child" href="/containers/new" style="color:var(--blue); font-weight:600;">'
|
|
|
|
'<span class="rail-ico">+</span>'
|
|
|
|
'<span class="rail-ico">+</span>'
|
|
|
|
'<span class="rail-text">Add container</span></a>\n'
|
|
|
|
'<span class="rail-text">Add container</span></a>\n'
|
|
|
|
)
|
|
|
|
)
|
|
|
|