Skip to content

Commit

Permalink
Add a space when separating exhibit links
Browse files Browse the repository at this point in the history
  • Loading branch information
lfarrell committed Feb 5, 2024
1 parent 7811579 commit 3a57f4d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<span class="has-text-weight-bold">{{ $t('full_record.related_digital_exhibits') }}: </span>
<template v-for="(exhibit_link, title, index) in recordData.exhibits">
<a :href="exhibit_link">{{ title }}</a>
<template v-if="hasMoreExhibits(index, recordData.exhibits)">;</template>
<template v-if="hasMoreExhibits(index, recordData.exhibits)">; </template>
</template>
</li>
</ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<strong>{{ $t('full_record.related_digital_exhibits') }}: </strong>
<template v-for="(exhibit_link, title, index) in recordData.exhibits">
<a :href="exhibit_link">{{ title }}</a>
<template v-if="hasMoreExhibits(index, recordData.exhibits)">;</template>
<template v-if="hasMoreExhibits(index, recordData.exhibits)">; </template>
</template>
</p>
<p><a @click.prevent="displayMetadata()" href="#">{{ $t('full_record.additional_metadata') }}</a></p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<span class="has-text-weight-bold">{{ $t('full_record.related_digital_exhibits') }}: </span>
<template v-for="(exhibit_link, title, index) in recordData.exhibits">
<a :href="exhibit_link">{{ title }}</a>
<template v-if="hasMoreExhibits(index, recordData.exhibits)">;</template>
<template v-if="hasMoreExhibits(index, recordData.exhibits)">; </template>
</template>
</li>
<li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ describe('aggregateRecord.vue', () => {
it("displays a list of exhibits separated by semicolons", () => {
let exhibits = wrapper.find('.exhibits');
expect(exhibits.exists()).toBe(true);
expect(exhibits.html()).toEqual(expect.stringMatching(/<a.href=.*boxycartoons.*>The.Cartoons.of.Boxy<\/a>;<a.href=.*dwanepowellcartoons.*>The Cartoons.of.Dwane.Powell<\/a>/));
expect(exhibits.html()).toEqual(expect.stringMatching(/<a.href=.*boxycartoons.*>The.Cartoons.of.Boxy<\/a>;\s<a.href=.*dwanepowellcartoons.*>The Cartoons.of.Dwane.Powell<\/a>/));
});

it("displays a list with one exhibit without semicolons", async () => {
Expand Down

0 comments on commit 3a57f4d

Please sign in to comment.