Skip to content

Commit

Permalink
fix: show translated no category when sorting by category (#122)
Browse files Browse the repository at this point in the history
* fix: show translated no category when sorting by category

* chore: allow caching of docker building images
  • Loading branch information
ellite authored Feb 18, 2024
1 parent 03b175d commit 330c061
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 7 additions & 1 deletion includes/list_subscriptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,13 @@ function printSubscriptions($subscriptions, $sort, $categories, $members, $i18n)
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'];
Expand Down

0 comments on commit 330c061

Please sign in to comment.