diff --git a/app/static/app.css b/app/static/app.css index 2fcad39..9376299 100644 --- a/app/static/app.css +++ b/app/static/app.css @@ -763,6 +763,9 @@ body[data-reader="open"] .row[data-open="true"] { } .meta .badge.closed, .reader-meta .badge.closed { color: var(--error); border-color: var(--error); } .meta .gated { color: var(--error); } +/* How many postings a row stands for (roles.js `dupes`), newsdesk's "+N more + outlets": beside the company and in the accent, not a badge. */ +.dupes { color: var(--accent); white-space: nowrap; } .excerpt { font-family: var(--read); @@ -928,6 +931,20 @@ body[data-reader="open"] .company-strip { display: none; } } .prose p { margin: 0 0 1.05rem; } .reader-out { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); } +.reader-note a { color: var(--accent); } +.reader-copy { margin-top: .8rem; } +/* The other postings of the role (roles.js `alsoPosted`), newsdesk's "Also + covered by": the host over the place, one link each. */ +.also { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); } +.also a { + display: block; margin-bottom: .55rem; + color: var(--dim); font-size: .92rem; text-decoration: none; + line-height: 1.4; +} +.also a b { display: block; color: var(--faint); font-size: .78rem; font-weight: 600; } +@media (hover: hover) { + .also a:hover { color: var(--fg); } +} /* The step through the list, for the pointer that has no `j` and `k`. At the foot of the pane because that is where a thumb already is. Shown only by diff --git a/app/static/roles.js b/app/static/roles.js index 3040f1f..18b9818 100644 --- a/app/static/roles.js +++ b/app/static/roles.js @@ -860,6 +860,31 @@ + words.map((w) => `${esc(w)}`).join(""); } + /* How many postings the row stands for, when a board or another host + lists the same role more than once (`dupes`); the reader lists them. */ + function dupes(role) { + const n = (role.copies || 0) + 1; + return n > 1 ? `×${n}` : ""; + } + + /* The other postings of this role, each a link to where it is posted, + labelled by host and place, as newsdesk's "Also covered by". */ + function alsoPosted(r) { + const copies = (Array.isArray(r.copies) ? r.copies : []) + .filter((c) => safeUrl(c.original_url)); + if (!copies.length) return ""; + return `
A copy of + the posting the list shows.
` : ""} ${pay ? `${esc(pay.range)}
${pay.detail ? `${esc(pay.detail)}
` : ""} ${pay.note ? `${esc(pay.note)}
` : ""}` : ""} @@ -1259,6 +1287,7 @@Read it on ${esc(host(out) || "the board")} ↗
` : ""} + ${loaded ? alsoPosted(r) : ""}