1
0
mirror of https://github.com/rclone/rclone.git synced 2026-02-15 07:54:25 +00:00
Files
rclone/docs/layouts/partials/tier.html
2026-01-28 13:29:16 +00:00

28 lines
1016 B
HTML

{{/* Expect the context (.) to be the backend name string as .name and whether to align as .align */}}
{{ $backendName := .name | lower }}
{{ $data := index site.Data.backends $backendName }}
{{ $tierColors := dict
"Tier 1" "success"
"Tier 2" "success"
"Tier 3" "warning"
"Tier 4" "danger"
"Tier 5" "danger"
}}
{{ $tierMessages := dict
"Tier 1" "Core: Production-grade, first-class"
"Tier 2" "Stable: Well-supported, minor gaps"
"Tier 3" "Supported: Works for many uses; known caveats"
"Tier 4" "Experimental: Use with care; expect gaps/changes"
"Tier 5" "Deprecated: No longer maintained or supported"
}}
{{ if $data }}
{{ $color := index $tierColors $data.tier | default "secondary" }}
{{ $message := index $tierMessages $data.tier | default "" }}
<a href="/tiers/" class="badge badge-pill badge-{{ $color }} {{ if .align }}float-right{{ end }}" style="{{ if .align }}margin-top: 30px; {{ end }}font-size: 100%" title="{{ $message }}">
{{ $data.tier }}
</a>
{{ end }}