(Grav GitSync) Automatic Commit from yunohost-bot

This commit is contained in:
yunohost-bot 2021-02-08 00:59:36 +00:00 committed by Yunohost-Bot
parent 6c1ba11e9a
commit d5dfdb95d7
2 changed files with 5 additions and 3 deletions

Binary file not shown.

View file

@ -53,11 +53,13 @@ Disclaimers
{% endif %}
{{ infos.name }}
<span class="label label-default">{{infos.category}}</span>
{% if infos.level <= 0 %}
{% if infos.broken %}
<span class="label label-error">broken</span>
{% elif infos.bad_quality %}
{% else %}
{% if infos.bad_quality %}
<span class="label label-warning">low quality</span>
{% endif %}
{% endif %}
</div>
<div class="app-descr">{{ infos.description[descr_lang] }}</div>
<div class="app-footer">
@ -203,7 +205,7 @@ $(document).ready(function () {
// we look for the name of the app (h3) and try to find the user input
// + we check this app match the current quality filter
var text = $(this).find('.app-title').text().toLowerCase() + " " + $(this).find('.app-descr').text().toLowerCase();
if (text.indexOf(user_input_in_search_field) >= 0 && $(this).data("quality").indexOf(current_quality_filter) >= 0)
if (text.indexOf(user_input_in_search_field) >= 0)
{
$(this).show();
}