Skip to content

Commit

Permalink
Update variant list to use label (meltano#1328)
Browse files Browse the repository at this point in the history
Co-authored-by: Edgar R. M <[email protected]>
  • Loading branch information
tayloramurphy and edgarrmondragon authored May 23, 2023
1 parent 2d76af9 commit 70e70ec
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions _data/maintainers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -693,11 +693,11 @@ mauricio87:
name: mauricio87
url: https://github.com/mauricio87
meltano:
label: Meltano Community
label: Meltano
name: meltano
url: https://meltano.com/
meltanolabs:
label: Meltano Community
label: Meltano
name: meltanolabs
url: https://github.com/MeltanoLabs
menzenski:
Expand Down
10 changes: 7 additions & 3 deletions src/templates/Plugins.vue
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,15 @@
</span>
</p>
<span class="space-y-3" v-if="filteredVariants && filteredVariants.length > 1">
<p class="text-2xl">Available Variants</p>
<p class="text-2xl">Alternate Implementations</p>
<ul class="list-disc list-inside pl-4">
<li v-for="(variant, index) in filteredVariants" v-bind:key="index">
<g-link
:to="variant.node.path"
v-if="variant.node.path !== $page.plugins.path"
>{{ variant.node.variant }}</g-link
>{{ variant.node.maintainer.label }}</g-link
>
<span v-else>{{ variant.node.variant }}</span>
<span v-else>{{ variant.node.maintainer.label }}</span>
<span v-if="variant.node.isDefault"> (default)</span>
<span v-if="variant.node.keywords.includes('meltano_sdk')">
<img
Expand Down Expand Up @@ -484,6 +484,10 @@ query Plugins($path: String!, $name: String!) {
isDefault
keywords
pluginType
maintainer {
name
label
}
}
}
}
Expand Down

0 comments on commit 70e70ec

Please sign in to comment.