Making badges clickable.

This commit is contained in:
Ad5001 2022-01-19 19:07:36 +01:00
parent 262b23cf5c
commit dbafcaad55
Signed by: Ad5001
GPG Key ID: EF45F9C6AFE20160
1 changed files with 2 additions and 2 deletions

View File

@ -142,9 +142,9 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
{{ if hasPrefix .Title "Flatpak" }}
<a rel="nofollow noreferrer" href="https://flathub.org/apps/details/{{ .Index }}">
{{ partial "badge.html" (dict "Icon" "flathub" "Lang" $lang "Alt" "storeFlathub" ) }}
</a>
<br>
<img src="https://img.shields.io/flathub/v/{{ .Index }}?label=on%20flathub" alt="Version on flathub"/>
</a>
<br><br>{{ i18n "warnExternalWebsite" "flathub.org" }}
{{ else if hasPrefix .Title "Snap" }}
{{ $disclaimers.Set "snapcraft" true }}
@ -164,11 +164,11 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
{{ $disclaimers.Set "firefox" true }}
<a rel="nofollow noreferrer" href="https://addons.mozilla.org/en-US/firefox/addon/{{ .Index }}/">
{{ partial "badge.html" (dict "Icon" "amo" "Lang" $lang "Alt" "storeFirefoxAddons" ) }}
</a>
<br>
<img src="https://img.shields.io/amo/v/{{ .Index }}?logo=Firefox" alt="{{ $AppData.version }} on addons.mozilla.org"/>
<img src="https://badgen.net/amo/stars/{{ .Index }}?logo=Firefox" alt="Rating on addons.mozilla.org"/>
<img src="https://badgen.net/amo/users/{{ .Index }}?logo=Firefox" alt="User count on addons.mozilla.org"/>
</a>
<br><br>{{ i18n "warnExternalWebsite" "addons.mozilla.org" }}
{{ else }}
{{ i18n "file" }} {{ replace .Name "<version>" $AppData.version }}<br><br>