fix: show translated no category when sorting by category (#122)

* fix: show translated no category when sorting by category

* chore: allow caching of docker building images
This commit is contained in:
Miguel Ribeiro 2024-02-18 15:18:04 +01:00 committed by GitHub
parent 03b175d175
commit 330c061b74
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 1 deletions

View File

@ -74,3 +74,5 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64,linux/arm/v7
cache-from: type=gha
cache-to: type=gha,mode=max

View File

@ -70,7 +70,13 @@
if ($sort == "category_id" && $subscription['category_id'] != $currentCategory) {
?>
<div class="subscription-list-title">
<?= $categories[$subscription['category_id']]['name'] ?>
<?php
if ($subscription['category_id'] == 1) {
echo translate('no_category', $i18n);
} else {
echo $categories[$subscription['category_id']]['name'];
}
?>
</div>
<?php
$currentCategory = $subscription['category_id'];