Skip to content

Commit

Permalink
Make samples more prominent
Browse files Browse the repository at this point in the history
  • Loading branch information
holly-cummins committed Nov 15, 2024
1 parent 3a268f6 commit ac3de8e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/templates/extension-detail.js
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,14 @@ const ExtensionDetailTemplate = ({
text: metadata.maven?.artifactId,
}}
/>
<ExtensionMetadata
data={{
name: (metadata?.sourceControl?.samplesUrl?.length > 1 || (metadata?.sourceControl?.samplesUrl?.length === 1 && metadata.sourceControl.samplesUrl[0].description?.endsWith("s"))) ? "Samples" : "Sample",
fieldName: "samplesUrl",
metadata: metadata?.sourceControl,
transformer: element => element.description,
}}
/>
<ExtensionMetadata
data={{
name: "Built with",
Expand Down Expand Up @@ -523,14 +531,6 @@ const ExtensionDetailTemplate = ({
url: metadata.maven?.url,
}}
/>
<ExtensionMetadata
data={{
name: (metadata?.sourceControl?.samplesUrl?.length > 1 || (metadata?.sourceControl?.samplesUrl?.length === 1 && metadata.sourceControl.samplesUrl[0].description?.endsWith("s"))) ? "Samples" : "Sample",
fieldName: "samplesUrl",
metadata: metadata?.sourceControl,
transformer: element => element.description,
}}
/>
<ExtensionMetadata
data={{
name: "Issues",
Expand Down

0 comments on commit ac3de8e

Please sign in to comment.