Skip to content

Commit 571bc62

Browse files
committed
Sync shared explorer files
1 parent 94f3163 commit 571bc62

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎templates/index.html‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
header a { color: var(--muted); font-size: 13px; text-decoration: none; }
5050
header a:hover { text-decoration: underline; }
5151
#filters { padding: 8px 16px; border-bottom: 1px solid var(--border); }
52+
#filters[hidden] { display: none; }
5253
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 3px 0; }
5354
.filter-row[hidden] { display: none; }
5455
.filter-row > span { min-width: 100px; font-size: 13px; color: var(--muted); }
@@ -240,7 +241,10 @@ <h1>@@NAME@@ <small>Explorer</small></h1>
240241
row("location-filters", "Location", D.sites, selectedSites);
241242
row("presentation-filters", "Presentation", D.decisions, selectedDecisions);
242243
row("track-filters", "Track", D.tracks.filter(Boolean).concat(D.tracks.includes("") ? [""] : []), selectedTracks, "Unknown");
244+
$("location-filters").hidden = D.sites.length < 2;
245+
$("presentation-filters").hidden = D.decisions.length < 2;
243246
$("track-filters").hidden = D.tracks.length < 2;
247+
$("filters").hidden = D.sites.length < 2 && D.decisions.length < 2 && D.tracks.length < 2;
244248
$("clear-filters").disabled = !selectedSites.size && !selectedDecisions.size && !selectedTracks.size;
245249
}
246250
function filtersChanged() {
@@ -666,7 +670,7 @@ <h1>@@NAME@@ <small>Explorer</small></h1>
666670
authors.append(b);
667671
});
668672
nodes.push(authors, actions);
669-
if (paperAuthors(i).some(author => !author.id)) nodes.push(el("p", { className: "hint" }, "Authors without a NeurIPS account ID are grouped by name; identity not verified."));
673+
if (paperAuthors(i).some(author => !author.id)) nodes.push(el("p", { className: "hint" }, "Authors without a verified identifier are grouped by name; identity not verified."));
670674
if (X.tldr[i]) nodes.push(el("p", { className: "tldr" }, X.tldr[i]));
671675
nodes.push(el("p", { className: "abstract" }, X.abstract[i]));
672676
if (X.kw[i].length) {

0 commit comments

Comments
 (0)