Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 7 additions & 14 deletions docs/layouts/shortcodes/moduleNameStatusOwners.html
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,9 @@
{{- if (eq $element.ParentModule $item.ModuleName) -}}
{{ $child := trim (replace $element.ModuleName (print $item.ModuleName "/") "") "/" }}
{{ if $useLinks }}
{{- if eq $element.ModuleStatus "Available" -}}
{{- if or (eq $element.ModuleStatus "Available") (eq $element.ModuleStatus "Orphaned") -}}
<li style="margin-left: 20px;">
<a href="{{ $element.RepoURL }}" title="[Available 🟢] {{ $element.ModuleDisplayName }} | {{ $element.ModuleName }}">{{ $child }}</a>
</li>
{{- else if eq $element.ModuleStatus "Orphaned" -}}
<li style="margin-left: 20px;">
<span title="[Orphaned 🟡] {{ $element.ModuleDisplayName }} ({{ $element.ModuleName }})">{{ $child }}</span>
<a href="{{ $element.RepoURL }}" title="[{{ $element.ModuleStatus }} {{ if eq $element.ModuleStatus "Available" }}🟢{{ else }}🟡{{ end }}] {{ $element.ModuleDisplayName }} | {{ $element.ModuleName }}">{{ $child }}</a>
</li>
{{- else -}}
<li style="margin-left: 20px;">
Expand Down Expand Up @@ -323,7 +319,6 @@
{{ end }}
{{ $trimmedModuleStatus := replace $item.ModuleStatus "Module " "" }}
{{ $trimmedModuleStatus = replace $trimmedModuleStatus "Deprecated" "Deprecated :red_circle:" }}
{{ $trimmedModuleStatus = replace $trimmedModuleStatus "Deprecated" "Deprecated :red_circle:" }}
{{ $trimmedModuleStatus = replace $trimmedModuleStatus "Available" "Available :green_circle:" }}
{{ $trimmedModuleStatus = replace $trimmedModuleStatus "Orphaned" "Orphaned :yellow_circle:" }}
{{ $trimmedModuleStatus = replace $trimmedModuleStatus "Proposed" "Proposed :white_circle:" }}
Expand Down Expand Up @@ -353,13 +348,9 @@
{{- if (eq $element.ParentModule $item.ModuleName) -}}
{{ $child := trim (replace $element.ModuleName (print $item.ModuleName "/") "") "/" }}
{{ if $useLinks }}
{{- if eq $element.ModuleStatus "Available" -}}
<li style="margin-left: 20px;">
<a href="[Available 🟢] {{ $element.PublicRegistryReference }}" title="{{ $element.ModuleDisplayName }} | {{ $element.ModuleName }}">{{ $child }}</a>
</li>
{{- else if eq $element.ModuleStatus "Orphaned" -}}
{{- if or (eq $element.ModuleStatus "Available") (eq $element.ModuleStatus "Orphaned") -}}
<li style="margin-left: 20px;">
<span title="[Orphaned 🟡] {{ $element.ModuleDisplayName }} ({{ $element.ModuleName }})">{{ $child }}</span>
<a href="{{ $element.PublicRegistryReference }}" title="[{{ $element.ModuleStatus }} {{ if eq $element.ModuleStatus "Available" }}🟢{{ else }}🟡{{ end }}] {{ $element.ModuleDisplayName }} | {{ $element.ModuleName }}">{{ $child }}</a>
</li>
{{- else -}}
<li style="margin-left: 20px;">
Expand Down Expand Up @@ -392,8 +383,10 @@
</td>
<td> {{/* availability badge and versions */}}
{{- if or (eq $item.ModuleStatus "Available") (eq $item.ModuleStatus "Orphaned") (eq $item.ModuleStatus "Deprecated") -}}
{{/* Replace single hyphens with double hyphens for correct badge rendering for pre-releases - e.g., 0.2.0-pre1 */}}
{{- $badgeVersion := replace $moduleLatestVersion "-" "--" -}}
<a href="{{ $item.PublicRegistryReference }}">
<image src="https://img.shields.io/badge/{{ emojify $trimmedModuleStatus }}-{{ $moduleLatestVersion }}-purple"/>
<image src="https://img.shields.io/badge/{{ emojify $trimmedModuleStatus }}-{{ $badgeVersion }}-purple"/>
</a>
{{- else -}}
<a href="">
Expand Down