mirror of
https://github.com/YunoHost/apps.git
synced 2024-09-03 20:06:07 +02:00
appstore: misc 'title' attribute for buttons / icons
This commit is contained in:
parent
51203555c2
commit
48ab5fc757
4 changed files with 26 additions and 25 deletions
|
@ -11,7 +11,7 @@
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
class="h-12 w-12 rounded-lg object-cover shadow-sm mt-1"
|
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'] %}
|
{% 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 ">
|
<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 }}
|
{{ catalog['categories'][infos['category']]['title']|localize|lower }}
|
||||||
|
@ -21,19 +21,15 @@
|
||||||
|
|
||||||
|
|
||||||
<div class="h-9.5">
|
<div class="h-9.5">
|
||||||
|
{% if infos['level'] == "?" or infos["level"]|int <= 4 %}
|
||||||
{% if infos['level'] == 0 %}
|
<i class="fa fa-exclamation-circle text-red-500 py-0.5"
|
||||||
<div class="py-2 px-3">
|
aria-hidden="true"
|
||||||
<i class="text-md fa fa-exclamation-circle text-red-500" aria-hidden="true"></i>
|
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.') }}"
|
||||||
</div>
|
></i>
|
||||||
{% 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>
|
|
||||||
{% elif infos['level'] == 8 %}
|
{% elif infos['level'] == 8 %}
|
||||||
<div class="py-2 px-3">
|
<i class="fa fa-diamond text-teal-500 py-0.5" aria-hidden="true"
|
||||||
<i class="text-md fa fa-diamond text-teal-500" aria-hidden="true"></i>
|
title="{{ _('This app has been good quality according to our automatic tests over at least one year.') }}"
|
||||||
</div>
|
></i>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% set this_app_stars = stars.get(app_id, {})|length %}
|
{% set this_app_stars = stars.get(app_id, {})|length %}
|
||||||
|
|
|
@ -36,13 +36,15 @@
|
||||||
{{ infos['manifest']['name'] }}
|
{{ infos['manifest']['name'] }}
|
||||||
</h3>
|
</h3>
|
||||||
<span class="pt-1 pr-2 text-xs">
|
<span class="pt-1 pr-2 text-xs">
|
||||||
|
{% if infos['level'] == "?" or infos["level"]|int <= 4 %}
|
||||||
{% if infos['level'] == 0 %}
|
<i class="fa fa-exclamation-circle text-red-500 py-0.5"
|
||||||
<i class="fa fa-exclamation-circle text-red-500 py-0.5" aria-hidden="true"></i>
|
aria-hidden="true"
|
||||||
{% elif infos['level']|int <= 4 %}
|
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 class="fa fa-exclamation-triangle text-orange-500 py-0.5" aria-hidden="true"></i>
|
></i>
|
||||||
{% elif infos['level'] == 8 %}
|
{% elif infos['level'] == 8 %}
|
||||||
<i class="fa fa-diamond text-teal-500 py-0.5" aria-hidden="true"></i>
|
<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 %}
|
{% endif %}
|
||||||
<span class="inline-block group rounded-md text-xs text-violet-500 px-1 py-0.5">
|
<span class="inline-block group rounded-md text-xs text-violet-500 px-1 py-0.5">
|
||||||
<span class="inline-block">{{ this_app_stars }}</span>
|
<span class="inline-block">{{ this_app_stars }}</span>
|
||||||
|
@ -57,7 +59,7 @@
|
||||||
{{ infos["potential_alternative_to"]|join(', ') }}
|
{{ infos["potential_alternative_to"]|join(', ') }}
|
||||||
</div>
|
</div>
|
||||||
{% if infos['category'] %}
|
{% if infos['category'] %}
|
||||||
<span class="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 ">
|
<span class="rounded-full px-2.5 py-0.5 text-[10px] border text-{{ catalog['categories'][infos['category']]['color'] }}-600 border-{{ catalog['categories'][infos['category']]['color'] }}-400 ">
|
||||||
{{ catalog['categories'][infos['category']]['title']|localize|lower }}
|
{{ catalog['categories'][infos['category']]['title']|localize|lower }}
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -137,7 +139,7 @@
|
||||||
|
|
||||||
<div id="catalogGoodQuality" class="grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-3 max-w-screen-lg mx-auto pt-10">
|
<div id="catalogGoodQuality" class="grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-3 max-w-screen-lg mx-auto pt-10">
|
||||||
{% for app, infos in catalog['apps'].items() %}
|
{% for app, infos in catalog['apps'].items() %}
|
||||||
{% if infos['level'] and infos['level'] > 4 %}
|
{% if infos['level'] and infos['level'] != "?" and infos['level'] > 4 %}
|
||||||
{{ appCard(app, infos, timestamp_now, catalog) }}
|
{{ appCard(app, infos, timestamp_now, catalog) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -156,7 +158,7 @@
|
||||||
|
|
||||||
<div id="lowQualityAppTitle" class="text-center pt-10">
|
<div id="lowQualityAppTitle" class="text-center pt-10">
|
||||||
<h2 class="text-lg font-bold text-gray-900">
|
<h2 class="text-lg font-bold text-gray-900">
|
||||||
{{ _("Applications currently flagged as broken or low-quality") }}
|
{{ _("Applications currently flagged as broken") }}
|
||||||
</h2>
|
</h2>
|
||||||
<p class="text-sm">
|
<p class="text-sm">
|
||||||
{{ _("These are apps which failed our automatic tests.") }}<br/>
|
{{ _("These are apps which failed our automatic tests.") }}<br/>
|
||||||
|
@ -166,7 +168,7 @@
|
||||||
|
|
||||||
<div id="catalogLowQuality" class="grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-3 max-w-screen-lg mx-auto pt-10">
|
<div id="catalogLowQuality" class="grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-3 max-w-screen-lg mx-auto pt-10">
|
||||||
{% for app, infos in catalog['apps'].items() %}
|
{% for app, infos in catalog['apps'].items() %}
|
||||||
{% if not infos['level'] or infos['level'] <= 4 %}
|
{% if not infos['level'] or infos["level"] == "?" or infos['level'] <= 4 %}
|
||||||
{{ appCard(app, infos, timestamp_now, catalog) }}
|
{{ appCard(app, infos, timestamp_now, catalog) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
|
@ -94,6 +94,7 @@
|
||||||
<td class="py-2">
|
<td class="py-2">
|
||||||
{% if infos['website'] %}
|
{% if infos['website'] %}
|
||||||
<a
|
<a
|
||||||
|
title="{{ _('Official website') }}"
|
||||||
href="{{ infos['website'] }}"
|
href="{{ infos['website'] }}"
|
||||||
class="inline-block"
|
class="inline-block"
|
||||||
>
|
>
|
||||||
|
@ -104,6 +105,7 @@
|
||||||
<td class="py-2">
|
<td class="py-2">
|
||||||
{% if infos['upstream'] %}
|
{% if infos['upstream'] %}
|
||||||
<a
|
<a
|
||||||
|
title="{{ _('Code repository') }}"
|
||||||
href="{{ infos['upstream'] }}"
|
href="{{ infos['upstream'] }}"
|
||||||
class="inline-block"
|
class="inline-block"
|
||||||
>
|
>
|
||||||
|
@ -114,6 +116,7 @@
|
||||||
<td class="text-center max-w-[5em]">
|
<td class="text-center max-w-[5em]">
|
||||||
|
|
||||||
<a
|
<a
|
||||||
|
title="{{ _('Star this app') }}"
|
||||||
href="{{ url_for('star_app', app_id=app, action="unstar" if user_starred_this_app else "star") }}"
|
href="{{ url_for('star_app', app_id=app, action="unstar" if user_starred_this_app else "star") }}"
|
||||||
class="inline-block group btn-sm border text-violet-600 border-violet-500 hover:bg-violet-500 hover:text-white"
|
class="inline-block group btn-sm border text-violet-600 border-violet-500 hover:bg-violet-500 hover:text-white"
|
||||||
>
|
>
|
||||||
|
|
|
@ -32,13 +32,13 @@ def get_catalog():
|
||||||
"communication": "amber",
|
"communication": "amber",
|
||||||
"office": "lime",
|
"office": "lime",
|
||||||
"productivity_and_management": "purple",
|
"productivity_and_management": "purple",
|
||||||
"small_utilities": "",
|
"small_utilities": "black",
|
||||||
"reading": "emerald",
|
"reading": "emerald",
|
||||||
"multimedia": "fuchsia",
|
"multimedia": "fuchsia",
|
||||||
"social_media": "rose",
|
"social_media": "rose",
|
||||||
"games": "violet",
|
"games": "violet",
|
||||||
"dev": "stone",
|
"dev": "stone",
|
||||||
"system_tools": "white",
|
"system_tools": "black",
|
||||||
"iot": "orange",
|
"iot": "orange",
|
||||||
"wat": "teal",
|
"wat": "teal",
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue