Making badges clickable.

This commit is contained in:
Adsooi 2022-01-19 19:07:36 +01:00
parent 262b23cf5c
commit dbafcaad55
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160

View file

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