appstore: misc 'title' attribute for buttons / icons

This commit is contained in:
Alexandre Aubin
2023-09-18 17:40:11 +02:00
parent 51203555c2
commit 48ab5fc757
4 changed files with 26 additions and 25 deletions

View File

@ -11,7 +11,7 @@
loading="lazy"
class="h-12 w-12 rounded-lg object-cover shadow-sm mt-1"
/>
<h2 class="flex-auto basis-1/4 pl-2 pt-3 text-3xl font-bold text-gray-900">{{ infos["manifest"]["name"] }}</h2>
<h2 class="flex-0 pl-2 pt-3 text-3xl font-bold text-gray-900">{{ infos["manifest"]["name"] }}</h2>
{% if infos['category'] %}
<span class="ml-2 mb-1 rounded-full px-2.5 py-0.5 text-[10px] border text-{{ catalog['categories'][infos['category']]['color'] }}-500 border-{{ catalog['categories'][infos['category']]['color'] }}-400 ">
{{ catalog['categories'][infos['category']]['title']|localize|lower }}
@ -21,19 +21,15 @@
<div class="h-9.5">
{% if infos['level'] == 0 %}
<div class="py-2 px-3">
<i class="text-md fa fa-exclamation-circle text-red-500" aria-hidden="true"></i>
</div>
{% elif infos['level']|int <= 4 %}
<div class="py-2 px-3">
<i class="text-md fa fa-exclamation-triangle text-orange-500" aria-hidden="true"></i>
</div>
{% if infos['level'] == "?" or infos["level"]|int <= 4 %}
<i class="fa fa-exclamation-circle text-red-500 py-0.5"
aria-hidden="true"
title="{{ _('This app is currently flagged as broken because it failed our automatic tests.') }} {{ _('This is usually a temporary situation which requires packagers to fix something in the app.') }}"
></i>
{% elif infos['level'] == 8 %}
<div class="py-2 px-3">
<i class="text-md fa fa-diamond text-teal-500" aria-hidden="true"></i>
</div>
<i class="fa fa-diamond text-teal-500 py-0.5" aria-hidden="true"
title="{{ _('This app has been good quality according to our automatic tests over at least one year.') }}"
></i>
{% endif %}
{% set this_app_stars = stars.get(app_id, {})|length %}