mirror of
https://github.com/wallabag/wallabag.git
synced 2024-10-31 22:28:54 +00:00
Add unread filter to entries pages
Add the ability to filter for unread pages in the filters menu.
This commit is contained in:
parent
235026e2c7
commit
710f8e69d7
13 changed files with 32 additions and 0 deletions
|
@ -87,6 +87,18 @@ class EntryFilterType extends AbstractType
|
|||
->add('isStarred', CheckboxFilterType::class, [
|
||||
'label' => 'entry.filters.starred_label',
|
||||
])
|
||||
->add('isUnread', CheckboxFilterType::class, [
|
||||
'label' => 'entry.filters.unread_label',
|
||||
'apply_filter' => function (QueryInterface $filterQuery, $field, $values) {
|
||||
if (false === $values['value']) {
|
||||
return;
|
||||
}
|
||||
|
||||
$expression = $filterQuery->getExpr()->eq('e.isArchived', 'false');
|
||||
|
||||
return $filterQuery->createCondition($expression);
|
||||
},
|
||||
])
|
||||
->add('previewPicture', CheckboxFilterType::class, [
|
||||
'apply_filter' => function (QueryInterface $filterQuery, $field, $values) {
|
||||
if (false === $values['value']) {
|
||||
|
|
|
@ -154,6 +154,7 @@ entry:
|
|||
status_label: 'Status'
|
||||
archived_label: 'Arkiveret'
|
||||
starred_label: 'Favorit'
|
||||
unread_label: 'Ulæst'
|
||||
preview_picture_label: 'Har et vist billede'
|
||||
preview_picture_help: 'Forhåndsvis billede'
|
||||
language_label: 'Sprog'
|
||||
|
|
|
@ -154,6 +154,7 @@ entry:
|
|||
status_label: 'Status'
|
||||
archived_label: 'Archiviert'
|
||||
starred_label: 'Favorisiert'
|
||||
unread_label: 'Ungelesene'
|
||||
preview_picture_label: 'Vorschaubild vorhanden'
|
||||
preview_picture_help: 'Vorschaubild'
|
||||
language_label: 'Sprache'
|
||||
|
|
|
@ -154,6 +154,7 @@ entry:
|
|||
status_label: 'Status'
|
||||
archived_label: 'Archived'
|
||||
starred_label: 'Starred'
|
||||
unread_label: 'Unread'
|
||||
preview_picture_label: 'Has a preview picture'
|
||||
preview_picture_help: 'Preview picture'
|
||||
language_label: 'Language'
|
||||
|
|
|
@ -154,6 +154,7 @@ entry:
|
|||
status_label: 'Estatus'
|
||||
archived_label: 'Archivado'
|
||||
starred_label: 'Favorito'
|
||||
unread_label: 'Sin leer'
|
||||
preview_picture_label: 'Hay una foto'
|
||||
preview_picture_help: 'Foto de preview'
|
||||
language_label: 'Idioma'
|
||||
|
|
|
@ -154,6 +154,7 @@ entry:
|
|||
status_label: 'وضعیت'
|
||||
archived_label: 'بایگانیشده'
|
||||
starred_label: 'برگزیده'
|
||||
unread_label: 'خواندهنشده'
|
||||
preview_picture_label: 'دارای عکس پیشنمایش'
|
||||
preview_picture_help: 'پیشنمایش عکس'
|
||||
language_label: 'زبان'
|
||||
|
|
|
@ -154,6 +154,7 @@ entry:
|
|||
status_label: 'Status'
|
||||
archived_label: 'Lus'
|
||||
starred_label: 'Favoris'
|
||||
unread_label: 'Non lus'
|
||||
preview_picture_label: 'A une photo'
|
||||
preview_picture_help: 'Photo'
|
||||
language_label: 'Langue'
|
||||
|
|
|
@ -154,6 +154,7 @@ entry:
|
|||
status_label: 'Estatus'
|
||||
archived_label: 'Legits'
|
||||
starred_label: 'Favorits'
|
||||
unread_label: 'Pas legits'
|
||||
preview_picture_label: 'A una fotò'
|
||||
preview_picture_help: 'Fotò'
|
||||
language_label: 'Lenga'
|
||||
|
|
|
@ -154,6 +154,7 @@ entry:
|
|||
status_label: 'Status'
|
||||
archived_label: 'Zarchiwizowane'
|
||||
starred_label: 'Oznaczone gwiazdką'
|
||||
unread_label: 'Nieprzeczytane'
|
||||
preview_picture_label: 'Posiada podgląd obrazu'
|
||||
preview_picture_help: 'Podgląd obrazu'
|
||||
language_label: 'Język'
|
||||
|
|
|
@ -154,6 +154,7 @@ entry:
|
|||
status_label: 'Status'
|
||||
archived_label: 'Arhivat'
|
||||
starred_label: 'Steluțe'
|
||||
unread_label: 'Necitite'
|
||||
preview_picture_label: 'Are o imagine de previzualizare'
|
||||
preview_picture_help: 'Previzualizare imagine'
|
||||
language_label: 'Limbă'
|
||||
|
|
|
@ -154,6 +154,7 @@ entry:
|
|||
status_label: 'Durum'
|
||||
archived_label: 'Arşiv'
|
||||
starred_label: 'Favori'
|
||||
unread_label: 'Okunmayan'
|
||||
preview_picture_label: 'Resim önizlemesi varsa'
|
||||
preview_picture_help: 'Resim önizlemesi'
|
||||
language_label: 'Dil'
|
||||
|
|
|
@ -53,6 +53,11 @@
|
|||
{{ form_label(form.isStarred) }}
|
||||
</div>
|
||||
|
||||
<div class="input-field">
|
||||
{{ form_widget(form.isUnread) }}
|
||||
{{ form_label(form.isUnread) }}
|
||||
</div>
|
||||
|
||||
<div class="input-field">
|
||||
{{ form_widget(form.previewPicture) }}
|
||||
{{ form_label(form.previewPicture) }}
|
||||
|
|
|
@ -126,6 +126,11 @@
|
|||
{{ form_label(form.isStarred) }}
|
||||
</div>
|
||||
|
||||
<div class="input-field col s6 with-checkbox">
|
||||
{{ form_widget(form.isUnread) }}
|
||||
{{ form_label(form.isUnread) }}
|
||||
</div>
|
||||
|
||||
<div class="col s12">
|
||||
<label>{{ 'entry.filters.preview_picture_help'|trans }}</label>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue