Skip to content

Grid view #6848

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 11 commits into
base: edge
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
Init grid view
  • Loading branch information
math-GH committed Sep 30, 2024
commit a6733cbb8b86272bed3dac04cdcaeedfaeb2a909
9 changes: 9 additions & 0 deletions app/Controllers/indexController.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,15 @@ public function normalAction(): void {
};
}

/**
* This action displays the grid view of FreshRSS.
*
* @todo: change this view into specific CSS rules?
*/
public function gridAction(): void {
$this->normalAction();
}

/**
* This action displays the reader view of FreshRSS.
*
Expand Down
6 changes: 6 additions & 0 deletions app/Models/ReadingMode.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ public static function getReadingModes(): array {
array_merge($urlOutput, ['c' => $defaultCtrl, 'a' => 'normal']),
($isDefaultCtrl && $actualView === 'normal')
),
new FreshRSS_ReadingMode(
"view-grid",
_t('index.menu.grid_view'),
array_merge($urlOutput, ['c' => $defaultCtrl, 'a' => 'grid']),
($isDefaultCtrl && $actualView === 'grid')
),
new FreshRSS_ReadingMode(
"view-global",
_t('index.menu.global_view'),
Expand Down
1 change: 1 addition & 0 deletions app/Models/Themes.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ public static function alt(string $name): string {
'up' => '🔼', //△
'view-normal' => '📰', //☰
'view-global' => '📖', //☷
'view-grid' => '🧇',
'view-reader' => '📜',
'warning' => '⚠️', //△
];
Expand Down
1 change: 1 addition & 0 deletions app/i18n/cs/conf.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@
'view' => array(
'default' => 'Výchozí zobrazení',
'global' => 'Zobrazení přehledu',
'grid' => 'Grid view', // TODO
'normal' => 'Normální zobrazení',
'reader' => 'Zobrazení pro čtení',
),
Expand Down
1 change: 1 addition & 0 deletions app/i18n/cs/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
'bookmark_query' => 'Uložit aktuální dotaz do záložek',
'favorites' => 'Oblíbené (%s)',
'global_view' => 'Zobrazení přehledu',
'grid_view' => 'Grid view', // TODO
'important' => 'Důležité kanály',
'main_stream' => 'Hlavní kanál',
'mark_all_read' => 'Označit vše jako přečtené',
Expand Down
1 change: 1 addition & 0 deletions app/i18n/de/conf.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@
'view' => array(
'default' => 'Standard-Ansicht',
'global' => 'Globale Ansicht',
'grid' => 'Grid view', // TODO
'normal' => 'Normale Ansicht',
'reader' => 'Lese-Ansicht',
),
Expand Down
1 change: 1 addition & 0 deletions app/i18n/de/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
'bookmark_query' => 'Aktuelle Abfrage speichern',
'favorites' => 'Favoriten (%s)',
'global_view' => 'Globale Ansicht',
'grid_view' => 'Grid view', // TODO
'important' => 'Wichtige Feeds',
'main_stream' => 'Haupt-Feeds',
'mark_all_read' => 'Alle als gelesen markieren',
Expand Down
1 change: 1 addition & 0 deletions app/i18n/el/conf.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@
'view' => array(
'default' => 'Default view', // TODO
'global' => 'Global view', // TODO
'grid' => 'Grid view', // TODO
'normal' => 'Normal view', // TODO
'reader' => 'Reading view', // TODO
),
Expand Down
1 change: 1 addition & 0 deletions app/i18n/el/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
'bookmark_query' => 'Bookmark current query', // TODO
'favorites' => 'Favourites (%s)', // TODO
'global_view' => 'Global view', // TODO
'grid_view' => 'Grid view', // TODO
'important' => 'Important feeds', // TODO
'main_stream' => 'Main stream', // TODO
'mark_all_read' => 'Mark all as read', // TODO
Expand Down
1 change: 1 addition & 0 deletions app/i18n/en-us/conf.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@
'view' => array(
'default' => 'Default view', // IGNORE
'global' => 'Global view', // IGNORE
'grid' => 'Grid view', // TODO
'normal' => 'Normal view', // IGNORE
'reader' => 'Reading view', // IGNORE
),
Expand Down
1 change: 1 addition & 0 deletions app/i18n/en-us/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
'bookmark_query' => 'Bookmark current query', // IGNORE
'favorites' => 'Favorites (%s)',
'global_view' => 'Global view', // IGNORE
'grid_view' => 'Grid view', // TODO
'important' => 'Important feeds', // IGNORE
'main_stream' => 'Main stream', // IGNORE
'mark_all_read' => 'Mark all as read', // IGNORE
Expand Down
1 change: 1 addition & 0 deletions app/i18n/en/conf.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@
'view' => array(
'default' => 'Default view',
'global' => 'Global view',
'grid' => 'Grid view', // TODO
'normal' => 'Normal view',
'reader' => 'Reading view',
),
Expand Down
1 change: 1 addition & 0 deletions app/i18n/en/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
'bookmark_query' => 'Bookmark current query',
'favorites' => 'Favourites (%s)',
'global_view' => 'Global view',
'grid_view' => 'Grid view', // TODO
'important' => 'Important feeds',
'main_stream' => 'Main stream',
'mark_all_read' => 'Mark all as read',
Expand Down
1 change: 1 addition & 0 deletions app/i18n/es/conf.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@
'view' => array(
'default' => 'Vista por defecto',
'global' => 'Vista Global',
'grid' => 'Grid view', // TODO
'normal' => 'Vista Normal',
'reader' => 'Vista de Lectura',
),
Expand Down
1 change: 1 addition & 0 deletions app/i18n/es/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
'bookmark_query' => 'Marcar consulta actual',
'favorites' => 'Favoritos (%s)',
'global_view' => 'Vista Global',
'grid_view' => 'Grid view', // TODO
'important' => 'Fuentes importantes',
'main_stream' => 'Salida Principal',
'mark_all_read' => 'Marcar todo como leído',
Expand Down
1 change: 1 addition & 0 deletions app/i18n/fa/conf.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@
'view' => array(
'default' => ' نمای پیش فرض',
'global' => ' نمای جهانی',
'grid' => 'Grid view', // TODO
'normal' => ' نمای عادی',
'reader' => ' مشاهده خواندن',
),
Expand Down
1 change: 1 addition & 0 deletions app/i18n/fa/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
'bookmark_query' => ' درخواست فعلی را نشانک‌گذاری کنید',
'favorites' => ' موارد دلخواه (%s)',
'global_view' => ' نمای جهانی',
'grid_view' => 'Grid view', // TODO
'important' => 'Important feeds', // TODO
'main_stream' => ' جریان اصلی',
'mark_all_read' => ' همه را به عنوان خوانده شده علامت گذاری کنید',
Expand Down
1 change: 1 addition & 0 deletions app/i18n/fr/conf.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@
'view' => array(
'default' => 'Vue par défaut',
'global' => 'Vue globale',
'grid' => 'Grid view', // TODO
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'grid' => 'Grid view', // TODO
'grid' => 'Vue grille',

'normal' => 'Vue normale',
'reader' => 'Vue lecture',
),
Expand Down
1 change: 1 addition & 0 deletions app/i18n/fr/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
'bookmark_query' => 'Enregistrer la recherche courante',
'favorites' => 'Articles favoris (%s)',
'global_view' => 'Vue globale',
'grid_view' => 'Grid view', // TODO
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'grid_view' => 'Grid view', // TODO
'grid_view' => 'Vue grille',

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplication of the same translations. Either for this PR or another, I would prefer to keep a single copy

'important' => 'Flux importants',
'main_stream' => 'Flux principaux',
'mark_all_read' => 'Tout marquer comme lu',
Expand Down
1 change: 1 addition & 0 deletions app/i18n/he/conf.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@
'view' => array(
'default' => 'תצוגת ברירת המחדל',
'global' => 'תצוגה גלובלית',
'grid' => 'Grid view', // TODO
'normal' => 'תצוגה רגילה',
'reader' => 'תצוגת קריאה',
),
Expand Down
1 change: 1 addition & 0 deletions app/i18n/he/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
'bookmark_query' => 'Bookmark current query', // TODO
'favorites' => 'מועדפים (%s)',
'global_view' => 'תצוגה גלובלית',
'grid_view' => 'Grid view', // TODO
'important' => 'Important feeds', // TODO
'main_stream' => 'הזנה ראשית',
'mark_all_read' => 'סימון הכל כנקרא',
Expand Down
1 change: 1 addition & 0 deletions app/i18n/hu/conf.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@
'view' => array(
'default' => 'Alapértelmezett nézet',
'global' => 'Globális nézet',
'grid' => 'Grid view', // TODO
'normal' => 'Normál nézet',
'reader' => 'Olvasó nézet',
),
Expand Down
1 change: 1 addition & 0 deletions app/i18n/hu/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
'bookmark_query' => 'Jelenlegi lekérdezés könyvjelzőzése',
'favorites' => 'Kedvencek (%s)',
'global_view' => 'Globális nézet',
'grid_view' => 'Grid view', // TODO
'important' => 'Fontos hírforrások',
'main_stream' => 'Minden cikk',
'mark_all_read' => 'Minden megjelölése olvasottként',
Expand Down
1 change: 1 addition & 0 deletions app/i18n/id/conf.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@
'view' => array(
'default' => 'Tampilan default',
'global' => 'Tampilan global',
'grid' => 'Grid view', // TODO
'normal' => 'Tampilan normal',
'reader' => 'Tampilan membaca',
),
Expand Down
1 change: 1 addition & 0 deletions app/i18n/id/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
'bookmark_query' => 'Bookmark current query', // TODO
'favorites' => 'Favorites (%s)',
'global_view' => 'Global view', // TODO
'grid_view' => 'Grid view', // TODO
'important' => 'Important feeds', // TODO
'main_stream' => 'Main stream', // TODO
'mark_all_read' => 'Mark all as read', // TODO
Expand Down
1 change: 1 addition & 0 deletions app/i18n/it/conf.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@
'view' => array(
'default' => 'Visualizzazione predefinita',
'global' => 'Vista globale per categorie',
'grid' => 'Grid view', // TODO
Copy link
Contributor

@UserRoot-Luca UserRoot-Luca Dec 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'grid' => 'Grid view', // TODO
'grid' => 'Vista a griglia',

'normal' => 'Vista elenco',
'reader' => 'Modalità di lettura',
),
Expand Down
1 change: 1 addition & 0 deletions app/i18n/it/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
'bookmark_query' => 'Inserisci la ricerca corrente nei segnalibri',
'favorites' => 'Preferiti (%s)',
'global_view' => 'Vista globale per categorie',
'grid_view' => 'Grid view', // TODO
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'grid_view' => 'Grid view', // TODO
'grid_view' => 'Vista a griglia,

'important' => 'Feed importanti',
'main_stream' => 'Flusso principale',
'mark_all_read' => 'Segna tutto come letto',
Expand Down
1 change: 1 addition & 0 deletions app/i18n/ja/conf.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@
'view' => array(
'default' => 'デフォルトビュー',
'global' => 'グローバルビュー',
'grid' => 'Grid view', // TODO
'normal' => 'ノーマルビュー',
'reader' => 'リーディングビュー',
),
Expand Down
1 change: 1 addition & 0 deletions app/i18n/ja/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
'bookmark_query' => '現在のブックマーククエリ',
'favorites' => 'お気に入り (%s)',
'global_view' => 'グローバルビュー',
'grid_view' => 'Grid view', // TODO
'important' => '重要なフィード',
'main_stream' => 'メイン',
'mark_all_read' => 'すべての記事を既読にする',
Expand Down
1 change: 1 addition & 0 deletions app/i18n/ko/conf.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@
'view' => array(
'default' => '기본 보기 모드',
'global' => '전체 모드',
'grid' => 'Grid view', // TODO
'normal' => '일반 모드',
'reader' => '읽기 모드',
),
Expand Down
1 change: 1 addition & 0 deletions app/i18n/ko/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
'bookmark_query' => '현재 쿼리 북마크',
'favorites' => '즐겨찾기 (%s)',
'global_view' => '전체 모드',
'grid_view' => 'Grid view', // TODO
'important' => '중요 피드',
'main_stream' => '메인 스트림',
'mark_all_read' => '모두 읽음으로 표시',
Expand Down
1 change: 1 addition & 0 deletions app/i18n/lv/conf.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@
'view' => array(
'default' => 'Noklusējuma skats',
'global' => 'Globālais skats',
'grid' => 'Grid view', // TODO
'normal' => 'Parastais skats',
'reader' => 'Lasīšanas skats',
),
Expand Down
1 change: 1 addition & 0 deletions app/i18n/lv/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
'bookmark_query' => 'Pievienot grāmatzīmi pašreizējam pieprasījumam',
'favorites' => 'Mīļākie (%s)',
'global_view' => 'Globālais skats',
'grid_view' => 'Grid view', // TODO
'important' => 'Important feeds', // TODO
'main_stream' => 'Galvenā plūsma',
'mark_all_read' => 'Atzīmēt visus kā izlasītus',
Expand Down
1 change: 1 addition & 0 deletions app/i18n/nl/conf.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@
'view' => array(
'default' => 'Standaard weergave',
'global' => 'Globale weergave',
'grid' => 'Grid view', // TODO
'normal' => 'Normale weergave',
'reader' => 'Lees weergave',
),
Expand Down
1 change: 1 addition & 0 deletions app/i18n/nl/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
'bookmark_query' => 'Huidige query opslaan',
'favorites' => 'Favorieten (%s)',
'global_view' => 'Globale weergave',
'grid_view' => 'Grid view', // TODO
'important' => 'Belangrijke feeds',
'main_stream' => 'Overzicht',
'mark_all_read' => 'Markeer alles als gelezen',
Expand Down
1 change: 1 addition & 0 deletions app/i18n/oc/conf.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@
'view' => array(
'default' => 'Vista per defaut',
'global' => 'Vista generala',
'grid' => 'Grid view', // TODO
'normal' => 'Vista normala',
'reader' => 'Vista lectura',
),
Expand Down
1 change: 1 addition & 0 deletions app/i18n/oc/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
'bookmark_query' => 'Marcar aquesta requèsta',
'favorites' => 'Favorits (%s)',
'global_view' => 'Vista generala',
'grid_view' => 'Grid view', // TODO
'important' => 'Important feeds', // TODO
'main_stream' => 'Flux màger',
'mark_all_read' => 'O marcar tot coma legit',
Expand Down
1 change: 1 addition & 0 deletions app/i18n/pl/conf.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@
'view' => array(
'default' => 'Domyślny widok',
'global' => 'Widok globalny',
'grid' => 'Grid view', // TODO
'normal' => 'Widok normalny',
'reader' => 'Widok czytania',
),
Expand Down
1 change: 1 addition & 0 deletions app/i18n/pl/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
'bookmark_query' => 'Zapisz bieżące zapytanie',
'favorites' => 'Ulubione (%s)',
'global_view' => 'Widok globalny',
'grid_view' => 'Grid view', // TODO
'important' => 'Ważne kanały',
'main_stream' => 'Kanał główny',
'mark_all_read' => 'Oznacz wszystkie jako przeczytane',
Expand Down
1 change: 1 addition & 0 deletions app/i18n/pt-br/conf.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@
'view' => array(
'default' => 'Visualização padrão',
'global' => 'Visualização global',
'grid' => 'Grid view', // TODO
'normal' => 'Visualização normal',
'reader' => 'Visualização de leitura',
),
Expand Down
1 change: 1 addition & 0 deletions app/i18n/pt-br/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
'bookmark_query' => 'Salvar pesquisa atual',
'favorites' => 'Favoritos (%s)',
'global_view' => 'Visualização global',
'grid_view' => 'Grid view', // TODO
'important' => 'Feeds importantes',
'main_stream' => 'Stream principal',
'mark_all_read' => 'Marcar todos como lidos',
Expand Down
1 change: 1 addition & 0 deletions app/i18n/ru/conf.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@
'view' => array(
'default' => 'Вид по умолчанию',
'global' => 'Глобальный вид',
'grid' => 'Grid view', // TODO
'normal' => 'Обычный вид',
'reader' => 'Вид для чтения',
),
Expand Down
1 change: 1 addition & 0 deletions app/i18n/ru/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
'bookmark_query' => 'Сохранить текущий запрос',
'favorites' => 'Избранное (%s)',
'global_view' => 'Глобальный вид',
'grid_view' => 'Grid view', // TODO
'important' => 'Важные ленты',
'main_stream' => 'Основной поток',
'mark_all_read' => 'Отметить всё прочитанным',
Expand Down
1 change: 1 addition & 0 deletions app/i18n/sk/conf.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@
'view' => array(
'default' => 'Prednastavené zobrazenie',
'global' => 'Prehľadné zobrazenie',
'grid' => 'Grid view', // TODO
'normal' => 'Základné zobrazenie',
'reader' => 'Zobrazenie na čítanie',
),
Expand Down
1 change: 1 addition & 0 deletions app/i18n/sk/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
'bookmark_query' => 'Pridať aktuálny dopyt do obľúbených',
'favorites' => 'Obľúbené (%s)',
'global_view' => 'Prehľad',
'grid_view' => 'Grid view', // TODO
'important' => 'Dôležité kanály',
'main_stream' => 'Všetky kanály',
'mark_all_read' => 'Označiť všetko ako prečítané',
Expand Down
1 change: 1 addition & 0 deletions app/i18n/tr/conf.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@
'view' => array(
'default' => 'Öntanımlı görünüm',
'global' => 'Evrensel görünüm',
'grid' => 'Grid view', // TODO
'normal' => 'Normal görünüm',
'reader' => 'Okuma görünümü',
),
Expand Down
1 change: 1 addition & 0 deletions app/i18n/tr/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
'bookmark_query' => 'Şuana ait yer imi sorgusu',
'favorites' => 'Favoriler (%s)',
'global_view' => 'Evrensel görünüm',
'grid_view' => 'Grid view', // TODO
'important' => 'Önemli akışlar',
'main_stream' => 'Ana akış',
'mark_all_read' => 'Hepsini okundu olarak işaretle',
Expand Down
1 change: 1 addition & 0 deletions app/i18n/zh-cn/conf.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@
'view' => array(
'default' => '默认视图',
'global' => '全屏视图',
'grid' => 'Grid view', // TODO
'normal' => '普通视图',
'reader' => '阅读视图',
),
Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy