Skip to content

Commit 2338e35

Browse files
authored
Merge pull request #10352 from quarto-dev/dashboard-authors
Dashboard - support mutliple authors
2 parents 0d87b08 + 64497c1 commit 2338e35

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

news/changelog-1.6.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ All changes included in 1.6:
3131
- ([#10235](https://github.com/quarto-dev/quarto-cli/issues/10235)): Configure the CI schedule trigger to activate exclusively for the upstream repository.
3232
- ([#10295](https://github.com/quarto-dev/quarto-cli/issues/10235)): fix regression to return error status to shell when `CommandError` is thrown.
3333
- ([#10332](https://github.com/quarto-dev/quarto-cli/issues/10332)): use `exitWithCleanup` whenever possible instead of `Deno.exit` to clean up temporary resources.
34+
- ([#10334](https://github.com/quarto-dev/quarto-cli/issues/10334)): fix `author` field rendered incorrectly in dashboards when multiple authors are present.

src/resources/formats/dashboard/_nav-container.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div class="navbar-title">
55
$if(title)$<div class="navbar-title-text"><a href="#">$title$</a></div>$endif$
66
$if(subtitle)$<div class="navbar-subtitle">$subtitle$</div>$endif$
7-
$if(author)$<div class="navbar-author">$author$</div>$endif$
7+
$if(author)$<div class="navbar-author">$for(author)$$author$$sep$, $endfor$</div>$endif$
88
</div>
99
</div>
1010
</div>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: "Test Dashboard"
3+
format: dashboard
4+
author:
5+
- name: John Doe
6+
orcid: 0000-0000-0000-0000
7+
affilifation:
8+
name: My Institution
9+
- name: Jane Doe
10+
orcid: 0000-0000-0000-0001
11+
affilifation:
12+
name: My Institution
13+
_quarto:
14+
tests:
15+
dashboard:
16+
ensureFileRegexMatches:
17+
- ["John Doe, Jane Doe"]
18+
- []
19+
---
20+
21+
## Dashboard Test

0 commit comments

Comments
 (0)