Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified locales/fr_FR/LC_MESSAGES/main.mo
Binary file not shown.
12 changes: 6 additions & 6 deletions locales/fr_FR/LC_MESSAGES/main.po
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
msgid ""
msgstr ""
"Project-Id-Version: Flus\n"
"POT-Creation-Date: 2026-02-08 22:00+0100\n"
"PO-Revision-Date: 2026-02-08 22:00+0100\n"
"POT-Creation-Date: 2026-02-08 22:16+0100\n"
"PO-Revision-Date: 2026-02-08 22:16+0100\n"
"Last-Translator: Marien Fressinaud <dev@marienfressinaud.fr>\n"
"Language-Team: \n"
"Language: fr_FR\n"
Expand Down Expand Up @@ -280,12 +280,12 @@ msgid "The name must be less than {max} characters."
msgstr "Le nom ne doit pas faire plus de {max} caractères."

#: models/Collection.php:139 models/Collection.php:229
#: navigations/ReadingNavigation.php:27
#: navigations/ReadingNavigation.php:30
msgid "Bookmarks"
msgstr "Signets"

#: models/Collection.php:150 models/Collection.php:231
#: navigations/ReadingNavigation.php:34
#: navigations/ReadingNavigation.php:37
msgid "Links read"
msgstr "Liens lus"

Expand All @@ -294,7 +294,7 @@ msgid "Links never to read"
msgstr "Liens à ne jamais lire"

#: models/Collection.php:172 models/Collection.php:233
#: navigations/ReadingNavigation.php:20
#: navigations/ReadingNavigation.php:23
msgid "News"
msgstr "Journal"

Expand Down Expand Up @@ -394,7 +394,7 @@ msgstr "Données"
msgid "Security"
msgstr "Sécurité"

#: navigations/ReadingNavigation.php:41
#: navigations/ReadingNavigation.php:46
msgid "Explore"
msgstr "Explorer"

Expand Down
4 changes: 2 additions & 2 deletions src/navigations/AccountNavigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace App\navigations;

use App\auth\CurrentUser;
use App\auth;
use Minz\Template\TwigExtension;

/**
Expand All @@ -13,7 +13,7 @@ class AccountNavigation extends BaseNavigation
{
public function elements(): array
{
$current_user = CurrentUser::require();
$current_user = auth\CurrentUser::require();

$account_items = [];
$data_items = [];
Expand Down
15 changes: 11 additions & 4 deletions src/navigations/ReadingNavigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace App\navigations;

use App\auth;
use Minz\Template\TwigExtension;

/**
Expand All @@ -12,7 +13,9 @@ class ReadingNavigation extends BaseNavigation
{
public function elements(): array
{
return [
$current_user = auth\CurrentUser::require();

$elements = [
new Item(
'news',
\Minz\Url::for('news'),
Expand All @@ -33,13 +36,17 @@ public function elements(): array
'check',
TwigExtension::translate('Links read'),
),
];

new Item(
if ($current_user->isBetaEnabled()) {
$elements[] = new Item(
'explore',
\Minz\Url::for('explore'),
'compass',
TwigExtension::translate('Explore'),
),
];
);
}

return $elements;
}
}
2 changes: 1 addition & 1 deletion src/views/collections/show.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
{% else %}
{% set feed_url = url_full('collection feed', { id: collection.id }) %}
{% set opengraph_description = t('A collection created by %s on %s.', [owner.username, app.brand]) %}
{% set current_tab = 'links' %}
{% set current_tab = can_update ? 'links' : 'reading' %}
{% endif %}

{% block title %}{{ collection.name }}{% endblock %}
Expand Down