Merge pull request 'Use a consistent compact type scale throughout the panel' (#178) from feature/panel-typography into main
Reviewed-on: #178
This commit was merged in pull request #178.
This commit is contained in:
commit
20b24aef4e
3 files changed
+104
-88
No files matched your search
@@ -661,6 +661,12 @@ components, typography, and spacing. Override these values in `:root` and
|
|||||||
`:root[data-appearance="dark"]`. Keep theme assets self-contained and review
|
`:root[data-appearance="dark"]`. Keep theme assets self-contained and review
|
||||||
third-party styles before installing them.
|
third-party styles before installing them.
|
||||||
|
|
||||||
|
The same type scale applies to sign-in and all panel roles. Use
|
||||||
|
`--font-size-title` for page titles, `--font-size-heading` for section
|
||||||
|
headings, `--font-size-body` for content and controls, and
|
||||||
|
`--font-size-small` for secondary labels. Override `--font-family` and
|
||||||
|
`--font-family-mono` to customize the two font stacks.
|
||||||
|
|
||||||
## Upgrade an existing panel
|
## Upgrade an existing panel
|
||||||
|
|
||||||
Download and unpack the new source release. Back up the panel database and
|
Download and unpack the new source release. Back up the panel database and
|
||||||
|
|||||||
@@ -50,7 +50,15 @@
|
|||||||
--row-padding: 0.55rem 0.85rem;
|
--row-padding: 0.55rem 0.85rem;
|
||||||
--section-gap: 0.9rem;
|
--section-gap: 0.9rem;
|
||||||
--font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
--font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
||||||
font: 100%/1.45 var(--font-family);
|
--font-family-mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
|
||||||
|
--font-size-small: 0.75rem;
|
||||||
|
--font-size-body: 0.875rem;
|
||||||
|
--font-size-heading: 1rem;
|
||||||
|
--font-size-title: clamp(1.55rem, 2.5vw, 2rem);
|
||||||
|
--font-weight-semibold: 600;
|
||||||
|
--font-weight-bold: 700;
|
||||||
|
font-family: var(--font-family);
|
||||||
|
line-height: 1.45;
|
||||||
}
|
}
|
||||||
|
|
||||||
:root[data-appearance="dark"] {
|
:root[data-appearance="dark"] {
|
||||||
@@ -91,6 +99,7 @@ body {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
background: var(--page);
|
background: var(--page);
|
||||||
color: var(--ink);
|
color: var(--ink);
|
||||||
|
font-size: var(--font-size-body);
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
@@ -102,6 +111,35 @@ button, input, select, textarea {
|
|||||||
font: inherit;
|
font: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input, select, textarea {
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
input::file-selector-button {
|
||||||
|
font: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
small, dt, thead th {
|
||||||
|
font-size: var(--font-size-small);
|
||||||
|
}
|
||||||
|
|
||||||
|
strong, b {
|
||||||
|
font-weight: var(--font-weight-bold);
|
||||||
|
}
|
||||||
|
|
||||||
|
pre, code, kbd, samp, .domain, .recovery-codes {
|
||||||
|
font-family: var(--font-family-mono);
|
||||||
|
font-size: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
.domain, code {
|
||||||
|
overflow-wrap: anywhere;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
overflow-x: auto;
|
||||||
|
}
|
||||||
|
|
||||||
:focus-visible {
|
:focus-visible {
|
||||||
outline: 3px solid var(--focus);
|
outline: 3px solid var(--focus);
|
||||||
outline-offset: 3px;
|
outline-offset: 3px;
|
||||||
@@ -153,8 +191,8 @@ button, input, select, textarea {
|
|||||||
gap: 0.65rem;
|
gap: 0.65rem;
|
||||||
padding: 0.25rem 0.45rem;
|
padding: 0.25rem 0.45rem;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
font-size: 1.06rem;
|
font-size: var(--font-size-heading);
|
||||||
font-weight: 750;
|
font-weight: var(--font-weight-bold);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
@@ -186,7 +224,7 @@ button, input, select, textarea {
|
|||||||
|
|
||||||
.brand-product {
|
.brand-product {
|
||||||
color: var(--brand-muted);
|
color: var(--brand-muted);
|
||||||
font-weight: 500;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navigation {
|
.navigation {
|
||||||
@@ -214,7 +252,6 @@ button, input, select, textarea {
|
|||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
color: var(--sidebar-link);
|
color: var(--sidebar-link);
|
||||||
font-size: 0.9rem;
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -226,7 +263,7 @@ button, input, select, textarea {
|
|||||||
|
|
||||||
.navigation a[aria-current] {
|
.navigation a[aria-current] {
|
||||||
box-shadow: inset 3px 0 var(--sidebar-highlight);
|
box-shadow: inset 3px 0 var(--sidebar-highlight);
|
||||||
font-weight: 650;
|
font-weight: var(--font-weight-semibold);
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-toggle {
|
.menu-toggle {
|
||||||
@@ -240,8 +277,7 @@ button, input, select, textarea {
|
|||||||
background: var(--sidebar-active);
|
background: var(--sidebar-active);
|
||||||
color: var(--sidebar-text);
|
color: var(--sidebar-text);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-size: 0.85rem;
|
font-weight: var(--font-weight-semibold);
|
||||||
font-weight: 650;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-icon {
|
.menu-icon {
|
||||||
@@ -285,7 +321,6 @@ button, input, select, textarea {
|
|||||||
margin-top: auto;
|
margin-top: auto;
|
||||||
padding-top: 0.7rem;
|
padding-top: 0.7rem;
|
||||||
border-top: 1px solid var(--sidebar-divider);
|
border-top: 1px solid var(--sidebar-divider);
|
||||||
font-size: 0.88rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-account-controls {
|
.sidebar-account-controls {
|
||||||
@@ -303,7 +338,7 @@ button, input, select, textarea {
|
|||||||
min-height: 2.2rem;
|
min-height: 2.2rem;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
color: var(--sidebar-text);
|
color: var(--sidebar-text);
|
||||||
font-weight: 650;
|
font-weight: var(--font-weight-semibold);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -330,7 +365,6 @@ a.sidebar-identity:hover {
|
|||||||
|
|
||||||
.panel-role-switch {
|
.panel-role-switch {
|
||||||
position: relative;
|
position: relative;
|
||||||
font-size: 0.82rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel-role-switch summary {
|
.panel-role-switch summary {
|
||||||
@@ -344,7 +378,8 @@ a.sidebar-identity:hover {
|
|||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
padding: 0.35rem 0.55rem;
|
padding: 0.35rem 0.55rem;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-weight: 650;
|
font-size: var(--font-size-small);
|
||||||
|
font-weight: var(--font-weight-semibold);
|
||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -418,13 +453,12 @@ a.sidebar-identity:hover {
|
|||||||
|
|
||||||
.panel-role-option small {
|
.panel-role-option small {
|
||||||
color: var(--sidebar-account);
|
color: var(--sidebar-account);
|
||||||
font-size: 0.75rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel-role-current {
|
.panel-role-current {
|
||||||
color: var(--sidebar-highlight);
|
color: var(--sidebar-highlight);
|
||||||
font-size: 0.75rem;
|
font-size: var(--font-size-small);
|
||||||
font-weight: 650;
|
font-weight: var(--font-weight-semibold);
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-action {
|
.sidebar-action {
|
||||||
@@ -435,7 +469,6 @@ a.sidebar-identity:hover {
|
|||||||
background: transparent;
|
background: transparent;
|
||||||
color: var(--sidebar-account);
|
color: var(--sidebar-account);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-size: 0.82rem;
|
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -454,7 +487,7 @@ a.sidebar-identity:hover {
|
|||||||
|
|
||||||
.appearance-control {
|
.appearance-control {
|
||||||
min-width: 2.2rem;
|
min-width: 2.2rem;
|
||||||
font-size: 1rem;
|
font-size: var(--font-size-heading);
|
||||||
}
|
}
|
||||||
|
|
||||||
.main {
|
.main {
|
||||||
@@ -480,27 +513,32 @@ a.sidebar-identity:hover {
|
|||||||
margin-top: 0.2rem;
|
margin-top: 0.2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1, h2, p, dl {
|
h1, h2, h3, h4, h5, h6, p, dl {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h1, h2, h3, h4, h5, h6 {
|
||||||
|
font-weight: var(--font-weight-bold);
|
||||||
|
line-height: 1.25;
|
||||||
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
overflow-wrap: anywhere;
|
overflow-wrap: anywhere;
|
||||||
font-size: clamp(1.55rem, 3vw, 2.35rem);
|
font-size: var(--font-size-title);
|
||||||
font-weight: 760;
|
letter-spacing: -0.03em;
|
||||||
letter-spacing: -0.045em;
|
|
||||||
line-height: 1.12;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
font-size: 1.12rem;
|
font-size: var(--font-size-heading);
|
||||||
font-weight: 700;
|
}
|
||||||
|
|
||||||
|
h3, h4, h5, h6 {
|
||||||
|
font-size: var(--font-size-body);
|
||||||
}
|
}
|
||||||
|
|
||||||
.heading-meta {
|
.heading-meta {
|
||||||
margin-top: 0.5rem;
|
margin-top: 0.5rem;
|
||||||
color: var(--muted);
|
color: var(--muted);
|
||||||
font-size: 0.92rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.surface {
|
.surface {
|
||||||
@@ -530,8 +568,7 @@ h2 {
|
|||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
border-radius: 7px;
|
border-radius: 7px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-size: 0.9rem;
|
font-weight: var(--font-weight-semibold);
|
||||||
font-weight: 650;
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -587,7 +624,7 @@ h2 {
|
|||||||
|
|
||||||
.update-release > summary {
|
.update-release > summary {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-weight: 680;
|
font-weight: var(--font-weight-semibold);
|
||||||
}
|
}
|
||||||
|
|
||||||
.release-notes {
|
.release-notes {
|
||||||
@@ -597,8 +634,11 @@ h2 {
|
|||||||
|
|
||||||
.release-notes :is(h1, h2, h3, h4, h5, h6) {
|
.release-notes :is(h1, h2, h3, h4, h5, h6) {
|
||||||
margin: 1rem 0 0.25rem;
|
margin: 1rem 0 0.25rem;
|
||||||
font-size: 1rem;
|
}
|
||||||
line-height: 1.3;
|
|
||||||
|
.release-notes h1 {
|
||||||
|
font-size: var(--font-size-heading);
|
||||||
|
letter-spacing: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.release-notes :is(p, ul, ol, pre, blockquote) {
|
.release-notes :is(p, ul, ol, pre, blockquote) {
|
||||||
@@ -614,7 +654,6 @@ h2 {
|
|||||||
border-radius: 0.4rem;
|
border-radius: 0.4rem;
|
||||||
background: var(--code-bg);
|
background: var(--code-bg);
|
||||||
color: var(--code-text);
|
color: var(--code-text);
|
||||||
font-size: 0.85rem;
|
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -677,8 +716,7 @@ h2 {
|
|||||||
min-height: 2.5rem;
|
min-height: 2.5rem;
|
||||||
padding: 0.5rem 0.75rem;
|
padding: 0.5rem 0.75rem;
|
||||||
border-radius: 7px;
|
border-radius: 7px;
|
||||||
font-size: 0.9rem;
|
font-weight: var(--font-weight-semibold);
|
||||||
font-weight: 680;
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -711,7 +749,6 @@ h2 {
|
|||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
border-top: 1px solid var(--line);
|
border-top: 1px solid var(--line);
|
||||||
color: var(--muted);
|
color: var(--muted);
|
||||||
font-size: 0.88rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
input:not([type="hidden"], [type="checkbox"], [type="radio"]),
|
input:not([type="hidden"], [type="checkbox"], [type="radio"]),
|
||||||
@@ -741,8 +778,7 @@ input::placeholder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.quiet-link, .back-link {
|
.quiet-link, .back-link {
|
||||||
font-size: 0.88rem;
|
font-weight: var(--font-weight-semibold);
|
||||||
font-weight: 600;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.back-link {
|
.back-link {
|
||||||
@@ -763,19 +799,14 @@ table {
|
|||||||
th, td {
|
th, td {
|
||||||
padding: var(--row-padding);
|
padding: var(--row-padding);
|
||||||
border-top: 1px solid var(--line);
|
border-top: 1px solid var(--line);
|
||||||
overflow-wrap: anywhere;
|
overflow-wrap: break-word;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|
||||||
th {
|
th {
|
||||||
background: var(--table-heading);
|
background: var(--table-heading);
|
||||||
color: var(--table-heading-text);
|
color: var(--table-heading-text);
|
||||||
font-size: 0.78rem;
|
font-weight: var(--font-weight-semibold);
|
||||||
font-weight: 700;
|
|
||||||
}
|
|
||||||
|
|
||||||
td {
|
|
||||||
font-size: 0.93rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tbody tr:hover {
|
tbody tr:hover {
|
||||||
@@ -801,16 +832,7 @@ tbody tr:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.record-link {
|
.record-link {
|
||||||
font-weight: 650;
|
font-weight: var(--font-weight-semibold);
|
||||||
}
|
|
||||||
|
|
||||||
.domain, code {
|
|
||||||
font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
|
|
||||||
overflow-wrap: anywhere;
|
|
||||||
}
|
|
||||||
|
|
||||||
.domain {
|
|
||||||
font-size: 0.88rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.muted, .empty {
|
.muted, .empty {
|
||||||
@@ -819,7 +841,6 @@ tbody tr:hover {
|
|||||||
|
|
||||||
.empty, .notice {
|
.empty, .notice {
|
||||||
padding: 1.1rem 1.2rem;
|
padding: 1.1rem 1.2rem;
|
||||||
font-size: 0.94rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.details {
|
.details {
|
||||||
@@ -836,8 +857,7 @@ tbody tr:hover {
|
|||||||
|
|
||||||
dt {
|
dt {
|
||||||
color: var(--muted);
|
color: var(--muted);
|
||||||
font-size: 0.8rem;
|
font-weight: var(--font-weight-semibold);
|
||||||
font-weight: 650;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dd {
|
dd {
|
||||||
@@ -875,8 +895,8 @@ dd {
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 0.18rem 0.62rem;
|
padding: 0.18rem 0.62rem;
|
||||||
border-radius: 0.75rem;
|
border-radius: 0.75rem;
|
||||||
font-size: 0.78rem;
|
font-size: var(--font-size-small);
|
||||||
font-weight: 680;
|
font-weight: var(--font-weight-semibold);
|
||||||
}
|
}
|
||||||
|
|
||||||
.status::before {
|
.status::before {
|
||||||
@@ -907,13 +927,10 @@ dd {
|
|||||||
|
|
||||||
.configuration {
|
.configuration {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
overflow-x: auto;
|
|
||||||
padding: 1.2rem;
|
padding: 1.2rem;
|
||||||
border-radius: 0 0 var(--radius) var(--radius);
|
border-radius: 0 0 var(--radius) var(--radius);
|
||||||
background: var(--code-bg);
|
background: var(--code-bg);
|
||||||
color: var(--code-text);
|
color: var(--code-text);
|
||||||
font-size: 0.88rem;
|
|
||||||
line-height: 1.6;
|
|
||||||
tab-size: 4;
|
tab-size: 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -930,8 +947,7 @@ dd {
|
|||||||
.editor label {
|
.editor label {
|
||||||
display: block;
|
display: block;
|
||||||
margin-bottom: 0.35rem;
|
margin-bottom: 0.35rem;
|
||||||
font-size: 0.88rem;
|
font-weight: var(--font-weight-semibold);
|
||||||
font-weight: 680;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.editor input:not([type="hidden"], [type="checkbox"], [type="radio"]),
|
.editor input:not([type="hidden"], [type="checkbox"], [type="radio"]),
|
||||||
@@ -963,8 +979,8 @@ dd {
|
|||||||
border: 1px solid var(--control-line);
|
border: 1px solid var(--control-line);
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
color: var(--accent);
|
color: var(--accent);
|
||||||
font-size: 0.8rem;
|
font-size: var(--font-size-small);
|
||||||
font-weight: 700;
|
font-weight: var(--font-weight-bold);
|
||||||
list-style: none;
|
list-style: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
@@ -990,7 +1006,6 @@ dd {
|
|||||||
border-radius: 0.5rem;
|
border-radius: 0.5rem;
|
||||||
background: var(--surface);
|
background: var(--surface);
|
||||||
box-shadow: 0 4px 12px var(--surface-shadow);
|
box-shadow: 0 4px 12px var(--surface-shadow);
|
||||||
font-size: 0.88rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.dns-surface {
|
.dns-surface {
|
||||||
@@ -1032,7 +1047,7 @@ dd {
|
|||||||
|
|
||||||
.reseller-editor legend {
|
.reseller-editor legend {
|
||||||
margin-bottom: 0.65rem;
|
margin-bottom: 0.65rem;
|
||||||
font-weight: 680;
|
font-weight: var(--font-weight-semibold);
|
||||||
}
|
}
|
||||||
|
|
||||||
.reseller-editor input[type="checkbox"] {
|
.reseller-editor input[type="checkbox"] {
|
||||||
@@ -1043,7 +1058,6 @@ dd {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0 0 0 1.1rem;
|
padding: 0 0 0 1.1rem;
|
||||||
color: var(--invalid);
|
color: var(--invalid);
|
||||||
font-size: 0.87rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.editor [aria-invalid="true"] {
|
.editor [aria-invalid="true"] {
|
||||||
@@ -1076,7 +1090,6 @@ dd {
|
|||||||
|
|
||||||
.sign-in-card h1 {
|
.sign-in-card h1 {
|
||||||
margin-bottom: 1.25rem;
|
margin-bottom: 1.25rem;
|
||||||
font-size: 2rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.authenticator-setup {
|
.authenticator-setup {
|
||||||
@@ -1094,7 +1107,6 @@ dd {
|
|||||||
.recovery-codes {
|
.recovery-codes {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-block: 0.75rem;
|
margin-block: 0.75rem;
|
||||||
font-family: monospace;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 780px) {
|
@media (max-width: 780px) {
|
||||||
@@ -1111,10 +1123,6 @@ dd {
|
|||||||
padding: 0.65rem 0.75rem;
|
padding: 0.65rem 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.brand {
|
|
||||||
font-size: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.brand-mark {
|
.brand-mark {
|
||||||
width: 1.95rem;
|
width: 1.95rem;
|
||||||
height: 1.95rem;
|
height: 1.95rem;
|
||||||
@@ -1290,7 +1298,7 @@ dd {
|
|||||||
.account-navigation [aria-current] {
|
.account-navigation [aria-current] {
|
||||||
border-bottom: 2px solid var(--accent);
|
border-bottom: 2px solid var(--accent);
|
||||||
color: var(--ink);
|
color: var(--ink);
|
||||||
font-weight: 700;
|
font-weight: var(--font-weight-bold);
|
||||||
}
|
}
|
||||||
|
|
||||||
.account-readiness {
|
.account-readiness {
|
||||||
|
|||||||
@@ -11,18 +11,20 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block page_content %}
|
{% block page_content %}
|
||||||
<section class="surface">
|
<section class="surface">
|
||||||
<table>
|
<div class="table-scroll">
|
||||||
<thead><tr><th scope="col">Package</th><th scope="col">Account limit</th></tr></thead>
|
<table>
|
||||||
<tbody>
|
<thead><tr><th scope="col">Package</th><th scope="col">Account limit</th></tr></thead>
|
||||||
{% for profile in object_list %}
|
<tbody>
|
||||||
<tr>
|
{% for profile in object_list %}
|
||||||
<td><a href="{% url 'panel:reseller_profile_edit' profile.pk %}">{{ profile.name }}</a>{% if profile.default_slot %} · Default{% endif %}</td>
|
<tr>
|
||||||
<td>{% if profile.account_limit %}{{ profile.account_limit }}{% else %}Manage existing accounts only{% endif %}</td>
|
<td><a href="{% url 'panel:reseller_profile_edit' profile.pk %}">{{ profile.name }}</a>{% if profile.default_slot %} · Default{% endif %}</td>
|
||||||
</tr>
|
<td>{% if profile.account_limit %}{{ profile.account_limit }}{% else %}Manage existing accounts only{% endif %}</td>
|
||||||
{% empty %}
|
</tr>
|
||||||
<tr><td colspan="2">No manager packages yet. Add one to reuse account limits and a set of hosting packages.</td></tr>
|
{% empty %}
|
||||||
{% endfor %}
|
<tr><td colspan="2">No manager packages yet. Add one to reuse account limits and a set of hosting packages.</td></tr>
|
||||||
</tbody>
|
{% endfor %}
|
||||||
</table>
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
Reference in new issue
Block a user