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:
parent
03b175d175
commit
330c061b74
2
.github/workflows/build-release.yaml
vendored
2
.github/workflows/build-release.yaml
vendored
@ -74,3 +74,5 @@ jobs:
|
|||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||||
|
cache-from: type=gha
|
||||||
|
cache-to: type=gha,mode=max
|
||||||
|
|||||||
@ -70,7 +70,13 @@
|
|||||||
if ($sort == "category_id" && $subscription['category_id'] != $currentCategory) {
|
if ($sort == "category_id" && $subscription['category_id'] != $currentCategory) {
|
||||||
?>
|
?>
|
||||||
<div class="subscription-list-title">
|
<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>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
$currentCategory = $subscription['category_id'];
|
$currentCategory = $subscription['category_id'];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user