diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources')
29 files changed, 730 insertions, 58 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/config/services.yml b/src/Wallabag/CoreBundle/Resources/config/services.yml index 4be79547..e09b0f18 100644 --- a/src/Wallabag/CoreBundle/Resources/config/services.yml +++ b/src/Wallabag/CoreBundle/Resources/config/services.yml | |||
@@ -63,7 +63,8 @@ services: | |||
63 | class: Wallabag\CoreBundle\GuzzleSiteAuthenticator\GrabySiteConfigBuilder | 63 | class: Wallabag\CoreBundle\GuzzleSiteAuthenticator\GrabySiteConfigBuilder |
64 | arguments: | 64 | arguments: |
65 | - "@wallabag_core.graby.config_builder" | 65 | - "@wallabag_core.graby.config_builder" |
66 | - "%sites_credentials%" | 66 | - "@security.token_storage" |
67 | - "@wallabag_core.site_credential_repository" | ||
67 | - '@logger' | 68 | - '@logger' |
68 | tags: | 69 | tags: |
69 | - { name: monolog.logger, channel: graby } | 70 | - { name: monolog.logger, channel: graby } |
@@ -120,6 +121,14 @@ services: | |||
120 | arguments: | 121 | arguments: |
121 | - WallabagCoreBundle:Tag | 122 | - WallabagCoreBundle:Tag |
122 | 123 | ||
124 | wallabag_core.site_credential_repository: | ||
125 | class: Wallabag\CoreBundle\Repository\SiteCredentialRepository | ||
126 | factory: [ "@doctrine.orm.default_entity_manager", getRepository ] | ||
127 | arguments: | ||
128 | - WallabagCoreBundle:SiteCredential | ||
129 | calls: | ||
130 | - [ setCrypto, [ "@wallabag_core.helper.crypto_proxy" ] ] | ||
131 | |||
123 | wallabag_core.helper.entries_export: | 132 | wallabag_core.helper.entries_export: |
124 | class: Wallabag\CoreBundle\Helper\EntriesExport | 133 | class: Wallabag\CoreBundle\Helper\EntriesExport |
125 | arguments: | 134 | arguments: |
@@ -201,3 +210,9 @@ services: | |||
201 | 210 | ||
202 | wallabag_core.entry.download_images.client: | 211 | wallabag_core.entry.download_images.client: |
203 | class: GuzzleHttp\Client | 212 | class: GuzzleHttp\Client |
213 | |||
214 | wallabag_core.helper.crypto_proxy: | ||
215 | class: Wallabag\CoreBundle\Helper\CryptoProxy | ||
216 | arguments: | ||
217 | - "%wallabag_core.site_credentials.encryption_key_path%" | ||
218 | - "@logger" | ||
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.da.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.da.yml index 02dd04f2..52904d25 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.da.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.da.yml | |||
@@ -32,6 +32,7 @@ menu: | |||
32 | # save_link: 'Save a link' | 32 | # save_link: 'Save a link' |
33 | back_to_unread: 'Tilbage til de ulæste artikler' | 33 | back_to_unread: 'Tilbage til de ulæste artikler' |
34 | # users_management: 'Users management' | 34 | # users_management: 'Users management' |
35 | # site_credentials: 'Site credentials' | ||
35 | top: | 36 | top: |
36 | add_new_entry: 'Tilføj ny artikel' | 37 | add_new_entry: 'Tilføj ny artikel' |
37 | search: 'Søg' | 38 | search: 'Søg' |
@@ -89,9 +90,10 @@ config: | |||
89 | token_reset: 'Nulstil token' | 90 | token_reset: 'Nulstil token' |
90 | rss_links: 'RSS-Links' | 91 | rss_links: 'RSS-Links' |
91 | rss_link: | 92 | rss_link: |
92 | unread: 'ulæst' | 93 | unread: 'Ulæst' |
93 | starred: 'favoritter' | 94 | starred: 'Favoritter' |
94 | archive: 'arkiv' | 95 | archive: 'Arkiv' |
96 | # all: 'All' | ||
95 | # rss_limit: 'Number of items in the feed' | 97 | # rss_limit: 'Number of items in the feed' |
96 | form_user: | 98 | form_user: |
97 | # two_factor_description: "Enabling two factor authentication means you'll receive an email with a code on every new untrusted connexion" | 99 | # two_factor_description: "Enabling two factor authentication means you'll receive an email with a code on every new untrusted connexion" |
@@ -520,6 +522,26 @@ user: | |||
520 | search: | 522 | search: |
521 | # placeholder: Filter by username or email | 523 | # placeholder: Filter by username or email |
522 | 524 | ||
525 | site_credential: | ||
526 | # page_title: Site credentials management | ||
527 | # new_site_credential: Create a credential | ||
528 | # edit_site_credential: Edit an existing credential | ||
529 | # description: "Here you can manage all credentials for sites which required them (create, edit and delete), like a paywall, an authentication, etc." | ||
530 | # list: | ||
531 | # actions: Actions | ||
532 | # edit_action: Edit | ||
533 | # yes: Yes | ||
534 | # no: No | ||
535 | # create_new_one: Create a new credential | ||
536 | # form: | ||
537 | # username_label: 'Username' | ||
538 | # host_label: 'Host' | ||
539 | # password_label: 'Password' | ||
540 | # save: Save | ||
541 | # delete: Delete | ||
542 | # delete_confirm: Are you sure? | ||
543 | # back_to_list: Back to list | ||
544 | |||
523 | error: | 545 | error: |
524 | # page_title: An error occurred | 546 | # page_title: An error occurred |
525 | 547 | ||
@@ -572,3 +594,8 @@ flashes: | |||
572 | # added: 'User "%username%" added' | 594 | # added: 'User "%username%" added' |
573 | # updated: 'User "%username%" updated' | 595 | # updated: 'User "%username%" updated' |
574 | # deleted: 'User "%username%" deleted' | 596 | # deleted: 'User "%username%" deleted' |
597 | site_credential: | ||
598 | notice: | ||
599 | # added: 'Site credential for "%host%" added' | ||
600 | # updated: 'Site credential for "%host%" updated' | ||
601 | # deleted: 'Site credential for "%host%" deleted' | ||
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.de.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.de.yml index f6ccdae0..481b5d05 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.de.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.de.yml | |||
@@ -32,6 +32,7 @@ menu: | |||
32 | save_link: 'Link speichern' | 32 | save_link: 'Link speichern' |
33 | back_to_unread: 'Zurück zu ungelesenen Artikeln' | 33 | back_to_unread: 'Zurück zu ungelesenen Artikeln' |
34 | users_management: 'Benutzerverwaltung' | 34 | users_management: 'Benutzerverwaltung' |
35 | # site_credentials: 'Site credentials' | ||
35 | top: | 36 | top: |
36 | add_new_entry: 'Neuen Artikel hinzufügen' | 37 | add_new_entry: 'Neuen Artikel hinzufügen' |
37 | search: 'Suche' | 38 | search: 'Suche' |
@@ -92,6 +93,7 @@ config: | |||
92 | unread: 'Ungelesene' | 93 | unread: 'Ungelesene' |
93 | starred: 'Favoriten' | 94 | starred: 'Favoriten' |
94 | archive: 'Archivierte' | 95 | archive: 'Archivierte' |
96 | # all: 'All' | ||
95 | rss_limit: 'Anzahl der Einträge pro Feed' | 97 | rss_limit: 'Anzahl der Einträge pro Feed' |
96 | form_user: | 98 | form_user: |
97 | two_factor_description: "Wenn du die Zwei-Faktor-Authentifizierung aktivierst, erhältst du eine E-Mail mit einem Code bei jeder nicht vertrauenswürdigen Verbindung" | 99 | two_factor_description: "Wenn du die Zwei-Faktor-Authentifizierung aktivierst, erhältst du eine E-Mail mit einem Code bei jeder nicht vertrauenswürdigen Verbindung" |
@@ -521,6 +523,26 @@ user: | |||
521 | search: | 523 | search: |
522 | placeholder: Filtere nach Benutzer oder E-Mail-Adresse | 524 | placeholder: Filtere nach Benutzer oder E-Mail-Adresse |
523 | 525 | ||
526 | site_credential: | ||
527 | # page_title: Site credentials management | ||
528 | # new_site_credential: Create a credential | ||
529 | # edit_site_credential: Edit an existing credential | ||
530 | # description: "Here you can manage all credentials for sites which required them (create, edit and delete), like a paywall, an authentication, etc." | ||
531 | list: | ||
532 | actions: Aktionen | ||
533 | edit_action: Bearbeiten | ||
534 | yes: Ja | ||
535 | no: Nein | ||
536 | # create_new_one: Create a new credential | ||
537 | form: | ||
538 | # username_label: 'Username' | ||
539 | # host_label: 'Host' | ||
540 | # password_label: 'Password' | ||
541 | save: Speichern | ||
542 | delete: Löschen | ||
543 | delete_confirm: Bist du sicher? | ||
544 | back_to_list: Zurück zur Liste | ||
545 | |||
524 | error: | 546 | error: |
525 | page_title: Ein Fehler ist aufgetreten | 547 | page_title: Ein Fehler ist aufgetreten |
526 | 548 | ||
@@ -573,3 +595,8 @@ flashes: | |||
573 | added: 'Benutzer "%username%" hinzugefügt' | 595 | added: 'Benutzer "%username%" hinzugefügt' |
574 | updated: 'Benutzer "%username%" aktualisiert' | 596 | updated: 'Benutzer "%username%" aktualisiert' |
575 | deleted: 'Benutzer "%username%" gelöscht' | 597 | deleted: 'Benutzer "%username%" gelöscht' |
598 | site_credential: | ||
599 | notice: | ||
600 | # added: 'Site credential for "%host%" added' | ||
601 | # updated: 'Site credential for "%host%" updated' | ||
602 | # deleted: 'Site credential for "%host%" deleted' | ||
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml index 902c3046..98888d05 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml | |||
@@ -32,6 +32,7 @@ menu: | |||
32 | save_link: 'Save a link' | 32 | save_link: 'Save a link' |
33 | back_to_unread: 'Back to unread articles' | 33 | back_to_unread: 'Back to unread articles' |
34 | users_management: 'Users management' | 34 | users_management: 'Users management' |
35 | site_credentials: 'Site credentials' | ||
35 | top: | 36 | top: |
36 | add_new_entry: 'Add a new entry' | 37 | add_new_entry: 'Add a new entry' |
37 | search: 'Search' | 38 | search: 'Search' |
@@ -89,9 +90,10 @@ config: | |||
89 | token_reset: 'Regenerate your token' | 90 | token_reset: 'Regenerate your token' |
90 | rss_links: 'RSS links' | 91 | rss_links: 'RSS links' |
91 | rss_link: | 92 | rss_link: |
92 | unread: 'unread' | 93 | unread: 'Unread' |
93 | starred: 'starred' | 94 | starred: 'Starred' |
94 | archive: 'archived' | 95 | archive: 'Archived' |
96 | all: 'All' | ||
95 | rss_limit: 'Number of items in the feed' | 97 | rss_limit: 'Number of items in the feed' |
96 | form_user: | 98 | form_user: |
97 | two_factor_description: "Enabling two factor authentication means you'll receive an email with a code on every new untrusted connection." | 99 | two_factor_description: "Enabling two factor authentication means you'll receive an email with a code on every new untrusted connection." |
@@ -521,6 +523,26 @@ user: | |||
521 | search: | 523 | search: |
522 | placeholder: Filter by username or email | 524 | placeholder: Filter by username or email |
523 | 525 | ||
526 | site_credential: | ||
527 | page_title: Site credentials management | ||
528 | new_site_credential: Create a credential | ||
529 | edit_site_credential: Edit an existing credential | ||
530 | description: "Here you can manage all credentials for sites which required them (create, edit and delete), like a paywall, an authentication, etc." | ||
531 | list: | ||
532 | actions: Actions | ||
533 | edit_action: Edit | ||
534 | yes: Yes | ||
535 | no: No | ||
536 | create_new_one: Create a new credential | ||
537 | form: | ||
538 | username_label: 'Username' | ||
539 | host_label: 'Host' | ||
540 | password_label: 'Password' | ||
541 | save: Save | ||
542 | delete: Delete | ||
543 | delete_confirm: Are you sure? | ||
544 | back_to_list: Back to list | ||
545 | |||
524 | error: | 546 | error: |
525 | page_title: An error occurred | 547 | page_title: An error occurred |
526 | 548 | ||
@@ -573,3 +595,8 @@ flashes: | |||
573 | added: 'User "%username%" added' | 595 | added: 'User "%username%" added' |
574 | updated: 'User "%username%" updated' | 596 | updated: 'User "%username%" updated' |
575 | deleted: 'User "%username%" deleted' | 597 | deleted: 'User "%username%" deleted' |
598 | site_credential: | ||
599 | notice: | ||
600 | added: 'Site credential for "%host%" added' | ||
601 | updated: 'Site credential for "%host%" updated' | ||
602 | deleted: 'Site credential for "%host%" deleted' | ||
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.es.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.es.yml index afd6a7b1..310a00de 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.es.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.es.yml | |||
@@ -32,6 +32,7 @@ menu: | |||
32 | save_link: 'Guardar un enlace' | 32 | save_link: 'Guardar un enlace' |
33 | back_to_unread: 'Volver a los artículos sin leer' | 33 | back_to_unread: 'Volver a los artículos sin leer' |
34 | users_management: 'Configuración de usuarios' | 34 | users_management: 'Configuración de usuarios' |
35 | # site_credentials: 'Site credentials' | ||
35 | top: | 36 | top: |
36 | add_new_entry: 'Añadir un nuevo artículo' | 37 | add_new_entry: 'Añadir un nuevo artículo' |
37 | search: 'Buscar' | 38 | search: 'Buscar' |
@@ -92,6 +93,7 @@ config: | |||
92 | unread: 'sin leer' | 93 | unread: 'sin leer' |
93 | starred: 'favoritos' | 94 | starred: 'favoritos' |
94 | archive: 'archivados' | 95 | archive: 'archivados' |
96 | # all: 'All' | ||
95 | rss_limit: 'Límite de artículos en feed RSS' | 97 | rss_limit: 'Límite de artículos en feed RSS' |
96 | form_user: | 98 | form_user: |
97 | two_factor_description: "Con la autenticación en dos pasos recibirá código por e-mail en cada nueva conexión que no sea de confianza." | 99 | two_factor_description: "Con la autenticación en dos pasos recibirá código por e-mail en cada nueva conexión que no sea de confianza." |
@@ -521,6 +523,26 @@ user: | |||
521 | search: | 523 | search: |
522 | # placeholder: Filter by username or email | 524 | # placeholder: Filter by username or email |
523 | 525 | ||
526 | site_credential: | ||
527 | # page_title: Site credentials management | ||
528 | # new_site_credential: Create a credential | ||
529 | # edit_site_credential: Edit an existing credential | ||
530 | # description: "Here you can manage all credentials for sites which required them (create, edit and delete), like a paywall, an authentication, etc." | ||
531 | # list: | ||
532 | # actions: Actions | ||
533 | # edit_action: Edit | ||
534 | # yes: Yes | ||
535 | # no: No | ||
536 | # create_new_one: Create a new credential | ||
537 | # form: | ||
538 | # username_label: 'Username' | ||
539 | # host_label: 'Host' | ||
540 | # password_label: 'Password' | ||
541 | # save: Save | ||
542 | # delete: Delete | ||
543 | # delete_confirm: Are you sure? | ||
544 | # back_to_list: Back to list | ||
545 | |||
524 | error: | 546 | error: |
525 | page_title: Ha ocurrido un error | 547 | page_title: Ha ocurrido un error |
526 | 548 | ||
@@ -573,3 +595,8 @@ flashes: | |||
573 | added: 'Añadido el usuario "%username%"' | 595 | added: 'Añadido el usuario "%username%"' |
574 | updated: 'Actualizado el usuario "%username%"' | 596 | updated: 'Actualizado el usuario "%username%"' |
575 | deleted: 'Eliminado el usuario "%username%"' | 597 | deleted: 'Eliminado el usuario "%username%"' |
598 | site_credential: | ||
599 | notice: | ||
600 | # added: 'Site credential for "%host%" added' | ||
601 | # updated: 'Site credential for "%host%" updated' | ||
602 | # deleted: 'Site credential for "%host%" deleted' | ||
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml index 545514b3..d5247fc3 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml | |||
@@ -32,6 +32,7 @@ menu: | |||
32 | save_link: 'ذخیرهٔ یک پیوند' | 32 | save_link: 'ذخیرهٔ یک پیوند' |
33 | back_to_unread: 'بازگشت به خواندهنشدهها' | 33 | back_to_unread: 'بازگشت به خواندهنشدهها' |
34 | # users_management: 'Users management' | 34 | # users_management: 'Users management' |
35 | # site_credentials: 'Site credentials' | ||
35 | top: | 36 | top: |
36 | add_new_entry: 'افزودن مقالهٔ تازه' | 37 | add_new_entry: 'افزودن مقالهٔ تازه' |
37 | search: 'جستجو' | 38 | search: 'جستجو' |
@@ -92,6 +93,7 @@ config: | |||
92 | unread: 'خواندهنشده' | 93 | unread: 'خواندهنشده' |
93 | starred: 'برگزیده' | 94 | starred: 'برگزیده' |
94 | archive: 'بایگانی' | 95 | archive: 'بایگانی' |
96 | # all: 'All' | ||
95 | rss_limit: 'محدودیت آر-اس-اس' | 97 | rss_limit: 'محدودیت آر-اس-اس' |
96 | form_user: | 98 | form_user: |
97 | two_factor_description: "با فعالکردن تأیید ۲مرحلهای هر بار که اتصال تأییدنشدهای برقرار شد، به شما یک کد از راه ایمیل فرستاده میشود" | 99 | two_factor_description: "با فعالکردن تأیید ۲مرحلهای هر بار که اتصال تأییدنشدهای برقرار شد، به شما یک کد از راه ایمیل فرستاده میشود" |
@@ -521,6 +523,26 @@ user: | |||
521 | search: | 523 | search: |
522 | # placeholder: Filter by username or email | 524 | # placeholder: Filter by username or email |
523 | 525 | ||
526 | site_credential: | ||
527 | # page_title: Site credentials management | ||
528 | # new_site_credential: Create a credential | ||
529 | # edit_site_credential: Edit an existing credential | ||
530 | # description: "Here you can manage all credentials for sites which required them (create, edit and delete), like a paywall, an authentication, etc." | ||
531 | # list: | ||
532 | # actions: Actions | ||
533 | # edit_action: Edit | ||
534 | # yes: Yes | ||
535 | # no: No | ||
536 | # create_new_one: Create a new credential | ||
537 | # form: | ||
538 | # username_label: 'Username' | ||
539 | # host_label: 'Host' | ||
540 | # password_label: 'Password' | ||
541 | # save: Save | ||
542 | # delete: Delete | ||
543 | # delete_confirm: Are you sure? | ||
544 | # back_to_list: Back to list | ||
545 | |||
524 | error: | 546 | error: |
525 | # page_title: An error occurred | 547 | # page_title: An error occurred |
526 | 548 | ||
@@ -573,3 +595,8 @@ flashes: | |||
573 | # added: 'User "%username%" added' | 595 | # added: 'User "%username%" added' |
574 | # updated: 'User "%username%" updated' | 596 | # updated: 'User "%username%" updated' |
575 | # deleted: 'User "%username%" deleted' | 597 | # deleted: 'User "%username%" deleted' |
598 | site_credential: | ||
599 | notice: | ||
600 | # added: 'Site credential for "%host%" added' | ||
601 | # updated: 'Site credential for "%host%" updated' | ||
602 | # deleted: 'Site credential for "%host%" deleted' | ||
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml index e9e79c67..b338eba4 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml | |||
@@ -32,6 +32,7 @@ menu: | |||
32 | save_link: "Sauvegarder un nouvel article" | 32 | save_link: "Sauvegarder un nouvel article" |
33 | back_to_unread: "Retour aux articles non lus" | 33 | back_to_unread: "Retour aux articles non lus" |
34 | users_management: "Gestion des utilisateurs" | 34 | users_management: "Gestion des utilisateurs" |
35 | site_credentials: 'Accès aux sites' | ||
35 | top: | 36 | top: |
36 | add_new_entry: "Sauvegarder un nouvel article" | 37 | add_new_entry: "Sauvegarder un nouvel article" |
37 | search: "Rechercher" | 38 | search: "Rechercher" |
@@ -87,11 +88,12 @@ config: | |||
87 | no_token: "Aucun jeton généré" | 88 | no_token: "Aucun jeton généré" |
88 | token_create: "Créez votre jeton" | 89 | token_create: "Créez votre jeton" |
89 | token_reset: "Réinitialisez votre jeton" | 90 | token_reset: "Réinitialisez votre jeton" |
90 | rss_links: "Adresse de vos flux RSS" | 91 | rss_links: "Adresses de vos flux RSS" |
91 | rss_link: | 92 | rss_link: |
92 | unread: "non lus" | 93 | unread: "Non lus" |
93 | starred: "favoris" | 94 | starred: "Favoris" |
94 | archive: "lus" | 95 | archive: "Lus" |
96 | all: "Tous" | ||
95 | rss_limit: "Nombre d’articles dans le flux" | 97 | rss_limit: "Nombre d’articles dans le flux" |
96 | form_user: | 98 | form_user: |
97 | two_factor_description: "Activer l’authentification double-facteur veut dire que vous allez recevoir un code par courriel à chaque nouvelle connexion non approuvée." | 99 | two_factor_description: "Activer l’authentification double-facteur veut dire que vous allez recevoir un code par courriel à chaque nouvelle connexion non approuvée." |
@@ -516,11 +518,31 @@ user: | |||
516 | twofactor_label: "Double authentification" | 518 | twofactor_label: "Double authentification" |
517 | save: "Sauvegarder" | 519 | save: "Sauvegarder" |
518 | delete: "Supprimer" | 520 | delete: "Supprimer" |
519 | delete_confirm: "Voulez-vous vraiment ?" | 521 | delete_confirm: "Êtes-vous sûr ?" |
520 | back_to_list: "Revenir à la liste" | 522 | back_to_list: "Revenir à la liste" |
521 | search: | 523 | search: |
522 | placeholder: "Filtrer par nom d’utilisateur ou email" | 524 | placeholder: "Filtrer par nom d’utilisateur ou email" |
523 | 525 | ||
526 | site_credential: | ||
527 | page_title: Gestion des accès aux sites | ||
528 | new_site_credential: Créer un accès à un site | ||
529 | edit_site_credential: Éditer l'accès d'un site | ||
530 | description: "Ici vous pouvez gérer les accès aux différents sites. Ces accès permettent de récupérer des contenus sur des sites qui requièrent une authentification ou un paywall" | ||
531 | list: | ||
532 | actions: Actions | ||
533 | edit_action: Éditer | ||
534 | yes: Oui | ||
535 | no: Non | ||
536 | create_new_one: Créer un nouvel accès à un site | ||
537 | form: | ||
538 | username_label: 'Identifiant' | ||
539 | host_label: 'Domaine' | ||
540 | password_label: 'Mot de passe' | ||
541 | save: "Sauvegarder" | ||
542 | delete: "Supprimer" | ||
543 | delete_confirm: "Êtes-vous sûr ?" | ||
544 | back_to_list: "Revenir à la liste" | ||
545 | |||
524 | error: | 546 | error: |
525 | page_title: "Une erreur est survenue" | 547 | page_title: "Une erreur est survenue" |
526 | 548 | ||
@@ -570,6 +592,11 @@ flashes: | |||
570 | client_deleted: "Client %name% supprimé" | 592 | client_deleted: "Client %name% supprimé" |
571 | user: | 593 | user: |
572 | notice: | 594 | notice: |
573 | added: "Utilisateur \"%username%\" ajouté" | 595 | added: 'Utilisateur "%username%" ajouté' |
574 | updated: "Utilisateur \"%username%\" mis à jour" | 596 | updated: 'Utilisateur "%username%" mis à jour' |
575 | deleted: "Utilisateur \"%username%\" supprimé" | 597 | deleted: 'Utilisateur "%username%" supprimé' |
598 | site_credential: | ||
599 | notice: | ||
600 | added: 'Accès au site "%host%" ajouté' | ||
601 | updated: 'Accès au site "%host%" mis à jour' | ||
602 | deleted: 'Accès au site "%host%" supprimé' | ||
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.it.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.it.yml index 0597d3e3..a3ff5495 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.it.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.it.yml | |||
@@ -32,6 +32,7 @@ menu: | |||
32 | save_link: 'Salva collegamento' | 32 | save_link: 'Salva collegamento' |
33 | back_to_unread: 'Torna ai contenuti non letti' | 33 | back_to_unread: 'Torna ai contenuti non letti' |
34 | # users_management: 'Users management' | 34 | # users_management: 'Users management' |
35 | # site_credentials: 'Site credentials' | ||
35 | top: | 36 | top: |
36 | add_new_entry: 'Aggiungi un nuovo contenuto' | 37 | add_new_entry: 'Aggiungi un nuovo contenuto' |
37 | search: 'Cerca' | 38 | search: 'Cerca' |
@@ -89,9 +90,10 @@ config: | |||
89 | token_reset: 'Rigenera il tuo token' | 90 | token_reset: 'Rigenera il tuo token' |
90 | rss_links: 'Collegamenti RSS' | 91 | rss_links: 'Collegamenti RSS' |
91 | rss_link: | 92 | rss_link: |
92 | unread: 'non letti' | 93 | unread: 'Non letti' |
93 | starred: 'preferiti' | 94 | starred: 'Preferiti' |
94 | archive: 'archiviati' | 95 | archive: 'Archiviati' |
96 | # all: 'All' | ||
95 | rss_limit: 'Numero di elementi nel feed' | 97 | rss_limit: 'Numero di elementi nel feed' |
96 | form_user: | 98 | form_user: |
97 | two_factor_description: "Abilitando l'\autenticazione a due fattori riceverai una e-mail con un codice per ogni nuova connesione non verificata" | 99 | two_factor_description: "Abilitando l'\autenticazione a due fattori riceverai una e-mail con un codice per ogni nuova connesione non verificata" |
@@ -521,6 +523,26 @@ user: | |||
521 | search: | 523 | search: |
522 | # placeholder: Filter by username or email | 524 | # placeholder: Filter by username or email |
523 | 525 | ||
526 | site_credential: | ||
527 | # page_title: Site credentials management | ||
528 | # new_site_credential: Create a credential | ||
529 | # edit_site_credential: Edit an existing credential | ||
530 | # description: "Here you can manage all credentials for sites which required them (create, edit and delete), like a paywall, an authentication, etc." | ||
531 | # list: | ||
532 | # actions: Actions | ||
533 | # edit_action: Edit | ||
534 | # yes: Yes | ||
535 | # no: No | ||
536 | # create_new_one: Create a new credential | ||
537 | # form: | ||
538 | # username_label: 'Username' | ||
539 | # host_label: 'Host' | ||
540 | # password_label: 'Password' | ||
541 | # save: Save | ||
542 | # delete: Delete | ||
543 | # delete_confirm: Are you sure? | ||
544 | # back_to_list: Back to list | ||
545 | |||
524 | error: | 546 | error: |
525 | # page_title: An error occurred | 547 | # page_title: An error occurred |
526 | 548 | ||
@@ -573,3 +595,8 @@ flashes: | |||
573 | # added: 'User "%username%" added' | 595 | # added: 'User "%username%" added' |
574 | # updated: 'User "%username%" updated' | 596 | # updated: 'User "%username%" updated' |
575 | # deleted: 'User "%username%" deleted' | 597 | # deleted: 'User "%username%" deleted' |
598 | site_credential: | ||
599 | notice: | ||
600 | # added: 'Site credential for "%host%" added' | ||
601 | # updated: 'Site credential for "%host%" updated' | ||
602 | # deleted: 'Site credential for "%host%" deleted' | ||
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.oc.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.oc.yml index c172a0f6..a6566a12 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.oc.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.oc.yml | |||
@@ -32,6 +32,7 @@ menu: | |||
32 | save_link: 'Enregistrar un novèl article' | 32 | save_link: 'Enregistrar un novèl article' |
33 | back_to_unread: 'Tornar als articles pas legits' | 33 | back_to_unread: 'Tornar als articles pas legits' |
34 | users_management: 'Gestion dels utilizaires' | 34 | users_management: 'Gestion dels utilizaires' |
35 | # site_credentials: 'Site credentials' | ||
35 | top: | 36 | top: |
36 | add_new_entry: 'Enregistrar un novèl article' | 37 | add_new_entry: 'Enregistrar un novèl article' |
37 | search: 'Cercar' | 38 | search: 'Cercar' |
@@ -87,11 +88,12 @@ config: | |||
87 | no_token: 'Pas cap de geton generat' | 88 | no_token: 'Pas cap de geton generat' |
88 | token_create: 'Creatz vòstre geton' | 89 | token_create: 'Creatz vòstre geton' |
89 | token_reset: 'Reïnicializatz vòstre geton' | 90 | token_reset: 'Reïnicializatz vòstre geton' |
90 | rss_links: 'URL de vòstres fluxes RSS' | 91 | rss_links: 'URLs de vòstres fluxes RSS' |
91 | rss_link: | 92 | rss_link: |
92 | unread: 'pas legits' | 93 | unread: 'Pas legits' |
93 | starred: 'favorits' | 94 | starred: 'Favorits' |
94 | archive: 'legits' | 95 | archive: 'Legits' |
96 | # all: 'All' | ||
95 | rss_limit: "Nombre d'articles dins un flux RSS" | 97 | rss_limit: "Nombre d'articles dins un flux RSS" |
96 | form_user: | 98 | form_user: |
97 | two_factor_description: "Activar l'autentificacion doble-factor vòl dire que recebretz un còdi per corrièl per cada novèla connexion pas aprovada." | 99 | two_factor_description: "Activar l'autentificacion doble-factor vòl dire que recebretz un còdi per corrièl per cada novèla connexion pas aprovada." |
@@ -521,6 +523,26 @@ user: | |||
521 | search: | 523 | search: |
522 | placeholder: "Filtrar per nom d'utilizaire o corrièl" | 524 | placeholder: "Filtrar per nom d'utilizaire o corrièl" |
523 | 525 | ||
526 | site_credential: | ||
527 | # page_title: Site credentials management | ||
528 | # new_site_credential: Create a credential | ||
529 | # edit_site_credential: Edit an existing credential | ||
530 | # description: "Here you can manage all credentials for sites which required them (create, edit and delete), like a paywall, an authentication, etc." | ||
531 | list: | ||
532 | actions: 'Accions' | ||
533 | edit_action: 'Modificar' | ||
534 | yes: 'Òc' | ||
535 | no: 'Non' | ||
536 | # create_new_one: Create a new credential | ||
537 | form: | ||
538 | # username_label: 'Username' | ||
539 | # host_label: 'Host' | ||
540 | # password_label: 'Password' | ||
541 | save: 'Enregistrar' | ||
542 | delete: 'Suprimir' | ||
543 | delete_confirm: 'Sètz segur ?' | ||
544 | back_to_list: 'Tornar a la lista' | ||
545 | |||
524 | error: | 546 | error: |
525 | page_title: Una error s'es produsida | 547 | page_title: Una error s'es produsida |
526 | 548 | ||
@@ -573,3 +595,8 @@ flashes: | |||
573 | added: 'Utilizaire "%username%" ajustat' | 595 | added: 'Utilizaire "%username%" ajustat' |
574 | updated: 'Utilizaire "%username%" mes a jorn' | 596 | updated: 'Utilizaire "%username%" mes a jorn' |
575 | deleted: 'Utilizaire "%username%" suprimit' | 597 | deleted: 'Utilizaire "%username%" suprimit' |
598 | site_credential: | ||
599 | notice: | ||
600 | # added: 'Site credential for "%host%" added' | ||
601 | # updated: 'Site credential for "%host%" updated' | ||
602 | # deleted: 'Site credential for "%host%" deleted' | ||
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml index 82d16767..8e1276d9 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml | |||
@@ -32,6 +32,7 @@ menu: | |||
32 | save_link: 'Zapisz link' | 32 | save_link: 'Zapisz link' |
33 | back_to_unread: 'Powrót do nieprzeczytanych artykułów' | 33 | back_to_unread: 'Powrót do nieprzeczytanych artykułów' |
34 | users_management: 'Zarządzanie użytkownikami' | 34 | users_management: 'Zarządzanie użytkownikami' |
35 | # site_credentials: 'Site credentials' | ||
35 | top: | 36 | top: |
36 | add_new_entry: 'Dodaj nowy wpis' | 37 | add_new_entry: 'Dodaj nowy wpis' |
37 | search: 'Szukaj' | 38 | search: 'Szukaj' |
@@ -89,9 +90,10 @@ config: | |||
89 | token_reset: 'Zresetuj swojego tokena' | 90 | token_reset: 'Zresetuj swojego tokena' |
90 | rss_links: 'RSS links' | 91 | rss_links: 'RSS links' |
91 | rss_link: | 92 | rss_link: |
92 | unread: 'nieprzeczytane' | 93 | unread: 'Nieprzeczytane' |
93 | starred: 'oznaczone gwiazdką' | 94 | starred: 'Oznaczone gwiazdką' |
94 | archive: 'archiwum' | 95 | archive: 'Archiwum' |
96 | # all: 'All' | ||
95 | rss_limit: 'Link do RSS' | 97 | rss_limit: 'Link do RSS' |
96 | form_user: | 98 | form_user: |
97 | two_factor_description: "Włączenie autoryzacji dwuetapowej oznacza, że będziesz otrzymywał maile z kodem przy każdym nowym, niezaufanym połączeniu" | 99 | two_factor_description: "Włączenie autoryzacji dwuetapowej oznacza, że będziesz otrzymywał maile z kodem przy każdym nowym, niezaufanym połączeniu" |
@@ -521,6 +523,26 @@ user: | |||
521 | search: | 523 | search: |
522 | placeholder: Filtruj po nazwie użytkownika lub adresie e-mail | 524 | placeholder: Filtruj po nazwie użytkownika lub adresie e-mail |
523 | 525 | ||
526 | site_credential: | ||
527 | # page_title: Site credentials management | ||
528 | # new_site_credential: Create a credential | ||
529 | # edit_site_credential: Edit an existing credential | ||
530 | # description: "Here you can manage all credentials for sites which required them (create, edit and delete), like a paywall, an authentication, etc." | ||
531 | list: | ||
532 | actions: Akcje | ||
533 | edit_action: Edytuj | ||
534 | yes: Tak | ||
535 | no: Nie | ||
536 | # create_new_one: Create a new credential | ||
537 | form: | ||
538 | # username_label: 'Username' | ||
539 | # host_label: 'Host' | ||
540 | # password_label: 'Password' | ||
541 | save: Zapisz | ||
542 | delete: Usuń | ||
543 | delete_confirm: Jesteś pewien? | ||
544 | back_to_list: Powrót do listy | ||
545 | |||
524 | error: | 546 | error: |
525 | page_title: Wystąpił błąd | 547 | page_title: Wystąpił błąd |
526 | 548 | ||
@@ -573,3 +595,8 @@ flashes: | |||
573 | added: 'Użytkownik "%username%" dodany' | 595 | added: 'Użytkownik "%username%" dodany' |
574 | updated: 'Użytkownik "%username%" zaktualizowany' | 596 | updated: 'Użytkownik "%username%" zaktualizowany' |
575 | deleted: 'Użytkownik "%username%" usunięty' | 597 | deleted: 'Użytkownik "%username%" usunięty' |
598 | site_credential: | ||
599 | notice: | ||
600 | # added: 'Site credential for "%host%" added' | ||
601 | # updated: 'Site credential for "%host%" updated' | ||
602 | # deleted: 'Site credential for "%host%" deleted' | ||
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.pt.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.pt.yml index b75567d6..953c86bb 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.pt.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.pt.yml | |||
@@ -32,6 +32,7 @@ menu: | |||
32 | save_link: 'Salvar um link' | 32 | save_link: 'Salvar um link' |
33 | back_to_unread: 'Voltar para os artigos não lidos' | 33 | back_to_unread: 'Voltar para os artigos não lidos' |
34 | users_management: 'Gestão de Usuários' | 34 | users_management: 'Gestão de Usuários' |
35 | # site_credentials: 'Site credentials' | ||
35 | top: | 36 | top: |
36 | add_new_entry: 'Adicionar uma nova entrada' | 37 | add_new_entry: 'Adicionar uma nova entrada' |
37 | search: 'Pesquisa' | 38 | search: 'Pesquisa' |
@@ -89,9 +90,10 @@ config: | |||
89 | token_reset: 'Gerar novamente seu token' | 90 | token_reset: 'Gerar novamente seu token' |
90 | rss_links: 'Links RSS' | 91 | rss_links: 'Links RSS' |
91 | rss_link: | 92 | rss_link: |
92 | unread: 'não lido' | 93 | unread: 'Não lido' |
93 | starred: 'destacado' | 94 | starred: 'Destacado' |
94 | archive: 'arquivado' | 95 | archive: 'Arquivado' |
96 | # all: 'All' | ||
95 | rss_limit: 'Número de itens no feed' | 97 | rss_limit: 'Número de itens no feed' |
96 | form_user: | 98 | form_user: |
97 | two_factor_description: 'Habilitar autenticação de dois passos significa que você receberá um e-mail com um código a cada nova conexão desconhecida.' | 99 | two_factor_description: 'Habilitar autenticação de dois passos significa que você receberá um e-mail com um código a cada nova conexão desconhecida.' |
@@ -521,6 +523,26 @@ user: | |||
521 | search: | 523 | search: |
522 | # placeholder: Filter by username or email | 524 | # placeholder: Filter by username or email |
523 | 525 | ||
526 | site_credential: | ||
527 | # page_title: Site credentials management | ||
528 | # new_site_credential: Create a credential | ||
529 | # edit_site_credential: Edit an existing credential | ||
530 | # description: "Here you can manage all credentials for sites which required them (create, edit and delete), like a paywall, an authentication, etc." | ||
531 | list: | ||
532 | actions: 'Ações' | ||
533 | edit_action: 'Editar' | ||
534 | yes: 'Sim' | ||
535 | no: 'Não' | ||
536 | # create_new_one: Create a new credential | ||
537 | form: | ||
538 | # username_label: 'Username' | ||
539 | # host_label: 'Host' | ||
540 | # password_label: 'Password' | ||
541 | save: 'Salvar' | ||
542 | delete: 'Apagar' | ||
543 | delete_confirm: 'Tem certeza?' | ||
544 | back_to_list: 'Voltar para a lista' | ||
545 | |||
524 | error: | 546 | error: |
525 | # page_title: An error occurred | 547 | # page_title: An error occurred |
526 | 548 | ||
@@ -573,3 +595,8 @@ flashes: | |||
573 | added: 'Usuário "%username%" adicionado' | 595 | added: 'Usuário "%username%" adicionado' |
574 | updated: 'Usuário "%username%" atualizado' | 596 | updated: 'Usuário "%username%" atualizado' |
575 | deleted: 'Usuário "%username%" removido' | 597 | deleted: 'Usuário "%username%" removido' |
598 | site_credential: | ||
599 | notice: | ||
600 | # added: 'Site credential for "%host%" added' | ||
601 | # updated: 'Site credential for "%host%" updated' | ||
602 | # deleted: 'Site credential for "%host%" deleted' | ||
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml index 95df573d..51dbbcaf 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml | |||
@@ -32,6 +32,7 @@ menu: | |||
32 | # save_link: 'Save a link' | 32 | # save_link: 'Save a link' |
33 | back_to_unread: 'Înapoi la articolele necitite' | 33 | back_to_unread: 'Înapoi la articolele necitite' |
34 | # users_management: 'Users management' | 34 | # users_management: 'Users management' |
35 | # site_credentials: 'Site credentials' | ||
35 | top: | 36 | top: |
36 | add_new_entry: 'Introdu un nou articol' | 37 | add_new_entry: 'Introdu un nou articol' |
37 | search: 'Căutare' | 38 | search: 'Căutare' |
@@ -89,9 +90,10 @@ config: | |||
89 | token_reset: 'Resetează-ți token-ul' | 90 | token_reset: 'Resetează-ți token-ul' |
90 | rss_links: 'Link-uri RSS' | 91 | rss_links: 'Link-uri RSS' |
91 | rss_link: | 92 | rss_link: |
92 | unread: 'unread' | 93 | unread: 'Unread' |
93 | starred: 'starred' | 94 | starred: 'Starred' |
94 | archive: 'archived' | 95 | archive: 'Archived' |
96 | # all: 'All' | ||
95 | rss_limit: 'Limită RSS' | 97 | rss_limit: 'Limită RSS' |
96 | form_user: | 98 | form_user: |
97 | # two_factor_description: "Enabling two factor authentication means you'll receive an email with a code on every new untrusted connexion" | 99 | # two_factor_description: "Enabling two factor authentication means you'll receive an email with a code on every new untrusted connexion" |
@@ -521,6 +523,26 @@ user: | |||
521 | search: | 523 | search: |
522 | # placeholder: Filter by username or email | 524 | # placeholder: Filter by username or email |
523 | 525 | ||
526 | site_credential: | ||
527 | # page_title: Site credentials management | ||
528 | # new_site_credential: Create a credential | ||
529 | # edit_site_credential: Edit an existing credential | ||
530 | # description: "Here you can manage all credentials for sites which required them (create, edit and delete), like a paywall, an authentication, etc." | ||
531 | # list: | ||
532 | # actions: Actions | ||
533 | # edit_action: Edit | ||
534 | # yes: Yes | ||
535 | # no: No | ||
536 | # create_new_one: Create a new credential | ||
537 | # form: | ||
538 | # username_label: 'Username' | ||
539 | # host_label: 'Host' | ||
540 | # password_label: 'Password' | ||
541 | # save: Save | ||
542 | # delete: Delete | ||
543 | # delete_confirm: Are you sure? | ||
544 | # back_to_list: Back to list | ||
545 | |||
524 | error: | 546 | error: |
525 | # page_title: An error occurred | 547 | # page_title: An error occurred |
526 | 548 | ||
@@ -573,3 +595,8 @@ flashes: | |||
573 | # added: 'User "%username%" added' | 595 | # added: 'User "%username%" added' |
574 | # updated: 'User "%username%" updated' | 596 | # updated: 'User "%username%" updated' |
575 | # deleted: 'User "%username%" deleted' | 597 | # deleted: 'User "%username%" deleted' |
598 | site_credential: | ||
599 | notice: | ||
600 | # added: 'Site credential for "%host%" added' | ||
601 | # updated: 'Site credential for "%host%" updated' | ||
602 | # deleted: 'Site credential for "%host%" deleted' | ||
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml index 61e1a1ea..ff19e9d9 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml | |||
@@ -32,6 +32,7 @@ menu: | |||
32 | # save_link: 'Save a link' | 32 | # save_link: 'Save a link' |
33 | back_to_unread: 'Okunmayan makalelere geri dön' | 33 | back_to_unread: 'Okunmayan makalelere geri dön' |
34 | # users_management: 'Users management' | 34 | # users_management: 'Users management' |
35 | # site_credentials: 'Site credentials' | ||
35 | top: | 36 | top: |
36 | add_new_entry: 'Yeni bir makale ekle' | 37 | add_new_entry: 'Yeni bir makale ekle' |
37 | search: 'Ara' | 38 | search: 'Ara' |
@@ -89,9 +90,10 @@ config: | |||
89 | token_reset: 'Belirteci (token) sıfırla' | 90 | token_reset: 'Belirteci (token) sıfırla' |
90 | rss_links: 'RSS akış bağlantıları' | 91 | rss_links: 'RSS akış bağlantıları' |
91 | rss_link: | 92 | rss_link: |
92 | unread: 'okunmayan' | 93 | unread: 'Okunmayan' |
93 | starred: 'favoriler' | 94 | starred: 'Favoriler' |
94 | archive: 'arşiv' | 95 | archive: 'Arşiv' |
96 | # all: 'All' | ||
95 | rss_limit: 'RSS içeriğinden talep edilecek makale limiti' | 97 | rss_limit: 'RSS içeriğinden talep edilecek makale limiti' |
96 | form_user: | 98 | form_user: |
97 | two_factor_description: "İki adımlı doğrulamayı aktifleştirdiğinizde, her yeni güvenilmeyen bağlantılarda size e-posta ile bir kod alacaksınız." | 99 | two_factor_description: "İki adımlı doğrulamayı aktifleştirdiğinizde, her yeni güvenilmeyen bağlantılarda size e-posta ile bir kod alacaksınız." |
@@ -571,3 +573,8 @@ flashes: | |||
571 | # added: 'User "%username%" added' | 573 | # added: 'User "%username%" added' |
572 | # updated: 'User "%username%" updated' | 574 | # updated: 'User "%username%" updated' |
573 | # deleted: 'User "%username%" deleted' | 575 | # deleted: 'User "%username%" deleted' |
576 | site_credential: | ||
577 | notice: | ||
578 | # added: 'Site credential for "%host%" added' | ||
579 | # updated: 'Site credential for "%host%" updated' | ||
580 | # deleted: 'Site credential for "%host%" deleted' | ||
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig index 01f63a7b..2bf64cd6 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig | |||
@@ -82,7 +82,7 @@ | |||
82 | <fieldset class="w500p inline"> | 82 | <fieldset class="w500p inline"> |
83 | <div class="row"> | 83 | <div class="row"> |
84 | <h3>{{ 'config.form_settings.android_configuration'|trans }}</h3> | 84 | <h3>{{ 'config.form_settings.android_configuration'|trans }}</h3> |
85 | <a href="wallabag://{{ app.user.username }}@{{ wallabag_url }}" >Touch here to prefill your Android application</a> | 85 | <a href="wallabag://{{ app.user.username }}@{{ wallabag_url }}">Touch here to prefill your Android application</a> |
86 | <br/> | 86 | <br/> |
87 | <img id="androidQrcode" /> | 87 | <img id="androidQrcode" /> |
88 | <script> | 88 | <script> |
@@ -106,7 +106,7 @@ | |||
106 | 106 | ||
107 | <fieldset class="w500p inline"> | 107 | <fieldset class="w500p inline"> |
108 | <div class="row"> | 108 | <div class="row"> |
109 | <label>Rss token</label> | 109 | <label>{{ 'config.form_rss.token_label'|trans }}</label> |
110 | {% if rss.token %} | 110 | {% if rss.token %} |
111 | {{ rss.token }} | 111 | {{ rss.token }} |
112 | {% else %} | 112 | {% else %} |
@@ -128,9 +128,10 @@ | |||
128 | <div class="row"> | 128 | <div class="row"> |
129 | <label>{{ 'config.form_rss.rss_links'|trans }}</label> | 129 | <label>{{ 'config.form_rss.rss_links'|trans }}</label> |
130 | <ul> | 130 | <ul> |
131 | <li><a href="{{ path('unread_rss', {'username': rss.username, 'token': rss.token}) }}">unread</a></li> | 131 | <li><a href="{{ path('unread_rss', {'username': rss.username, 'token': rss.token}) }}">{{ 'config.form_rss.rss_link.unread'|trans }}</a></li> |
132 | <li><a href="{{ path('starred_rss', {'username': rss.username, 'token': rss.token}) }}">fav</a></li> | 132 | <li><a href="{{ path('starred_rss', {'username': rss.username, 'token': rss.token}) }}">{{ 'config.form_rss.rss_link.starred'|trans }}</a></li> |
133 | <li><a href="{{ path('archive_rss', {'username': rss.username, 'token': rss.token}) }}">archives</a></li> | 133 | <li><a href="{{ path('archive_rss', {'username': rss.username, 'token': rss.token}) }}">{{ 'config.form_rss.rss_link.archive'|trans }}</a></li> |
134 | <li><a href="{{ path('all_rss', {'username': rss.username, 'token': rss.token}) }}">{{ 'config.form_rss.rss_link.all'|trans }}</a></li> | ||
134 | </ul> | 135 | </ul> |
135 | </div> | 136 | </div> |
136 | </fieldset> | 137 | </fieldset> |
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig index 6c26d5bf..6424df8d 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig | |||
@@ -1,5 +1,12 @@ | |||
1 | {% extends "WallabagCoreBundle::layout.html.twig" %} | 1 | {% extends "WallabagCoreBundle::layout.html.twig" %} |
2 | 2 | ||
3 | {% block head %} | ||
4 | {{ parent() }} | ||
5 | {% if tag is defined and app.user.config.rssToken %} | ||
6 | <link rel="alternate" type="application/rss+xml" href="{{ path('tag_rss', {'username': app.user.username, 'token': app.user.config.rssToken, 'slug': tag.slug}) }}" /> | ||
7 | {% endif %} | ||
8 | {% endblock %} | ||
9 | |||
3 | {% block title %} | 10 | {% block title %} |
4 | {% set filter = '' %} | 11 | {% set filter = '' %} |
5 | {% if tag is defined %} | 12 | {% if tag is defined %} |
@@ -12,12 +19,15 @@ | |||
12 | {% endblock %} | 19 | {% endblock %} |
13 | 20 | ||
14 | {% block content %} | 21 | {% block content %} |
15 | 22 | {% set currentRoute = app.request.attributes.get('_route') %} | |
16 | {% set listMode = app.user.config.listMode %} | 23 | {% set listMode = app.user.config.listMode %} |
17 | <div class="results"> | 24 | <div class="results"> |
18 | <div class="nb-results">{{ 'entry.list.number_on_the_page'|transchoice(entries.count) }}</div> | 25 | <div class="nb-results">{{ 'entry.list.number_on_the_page'|transchoice(entries.count) }}</div> |
19 | <div class="pagination"> | 26 | <div class="pagination"> |
20 | <a href="{{ path('switch_view_mode') }}"><i class="listMode-btn material-icons md-24">{% if listMode == 0 %}list{% else %}view_module{% endif %}</i></a> | 27 | <a href="{{ path('switch_view_mode') }}"><i class="listMode-btn material-icons md-24">{% if listMode == 0 %}list{% else %}view_module{% endif %}</i></a> |
28 | {% if app.user.config.rssToken %} | ||
29 | {% include "@WallabagCore/themes/common/Entry/_rss_link.html.twig" %} | ||
30 | {% endif %} | ||
21 | <i class="btn-clickable download-btn material-icons md-24 js-export-action">file_download</i> | 31 | <i class="btn-clickable download-btn material-icons md-24 js-export-action">file_download</i> |
22 | <i class="btn-clickable filter-btn material-icons md-24 js-filters-action">filter_list</i> | 32 | <i class="btn-clickable filter-btn material-icons md-24 js-filters-action">filter_list</i> |
23 | {% if entries.getNbPages > 1 %} | 33 | {% if entries.getNbPages > 1 %} |
@@ -76,7 +86,6 @@ | |||
76 | 86 | ||
77 | <!-- Export --> | 87 | <!-- Export --> |
78 | <aside id="download-form"> | 88 | <aside id="download-form"> |
79 | {% set currentRoute = app.request.attributes.get('_route') %} | ||
80 | {% set currentTag = '' %} | 89 | {% set currentTag = '' %} |
81 | {% if tag is defined %} | 90 | {% if tag is defined %} |
82 | {% set currentTag = tag %} | 91 | {% set currentTag = tag %} |
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/SiteCredential/edit.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/SiteCredential/edit.html.twig new file mode 100644 index 00000000..882be430 --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/SiteCredential/edit.html.twig | |||
@@ -0,0 +1,60 @@ | |||
1 | {% extends "WallabagCoreBundle::layout.html.twig" %} | ||
2 | |||
3 | {% block title %}{{ 'site_credential.page_title'|trans }}{% endblock %} | ||
4 | |||
5 | {% block content %} | ||
6 | |||
7 | <div class="row"> | ||
8 | <div class="col s12"> | ||
9 | <div class="card-panel"> | ||
10 | <div class="row"> | ||
11 | <div class="input-field col s12"> | ||
12 | <h4>{{ 'site_credential.edit_site_credential'|trans }}</h4> | ||
13 | |||
14 | <div id="set6" class="col s12"> | ||
15 | {{ form_start(edit_form) }} | ||
16 | {{ form_errors(edit_form) }} | ||
17 | |||
18 | <div class="row"> | ||
19 | <div class="input-field col s12"> | ||
20 | {{ form_label(edit_form.host) }} | ||
21 | {{ form_errors(edit_form.host) }} | ||
22 | {{ form_widget(edit_form.host) }} | ||
23 | </div> | ||
24 | </div> | ||
25 | |||
26 | <div class="row"> | ||
27 | <div class="input-field col s12"> | ||
28 | {{ form_label(edit_form.username) }} | ||
29 | {{ form_errors(edit_form.username) }} | ||
30 | {{ form_widget(edit_form.username) }} | ||
31 | </div> | ||
32 | </div> | ||
33 | |||
34 | <div class="row"> | ||
35 | <div class="input-field col s12"> | ||
36 | {{ form_label(edit_form.password) }} | ||
37 | {{ form_errors(edit_form.password) }} | ||
38 | {{ form_widget(edit_form.password) }} | ||
39 | </div> | ||
40 | </div> | ||
41 | |||
42 | <br/> | ||
43 | |||
44 | {{ form_widget(edit_form.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }} | ||
45 | {{ form_widget(edit_form._token) }} | ||
46 | </form> | ||
47 | <p> | ||
48 | {{ form_start(delete_form) }} | ||
49 | <button onclick="return confirm('{{ 'site_credential.form.delete_confirm'|trans|escape('js') }}')" type="submit" class="btn waves-effect waves-light red">{{ 'site_credential.form.delete'|trans }}</button> | ||
50 | {{ form_end(delete_form) }} | ||
51 | </p> | ||
52 | <p><a class="waves-effect waves-light btn blue-grey" href="{{ path('site_credentials_index') }}">{{ 'site_credential.form.back_to_list'|trans }}</a></p> | ||
53 | </div> | ||
54 | </div> | ||
55 | </div> | ||
56 | </div> | ||
57 | </div> | ||
58 | </div> | ||
59 | |||
60 | {% endblock %} | ||
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/SiteCredential/index.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/SiteCredential/index.html.twig new file mode 100644 index 00000000..324854ad --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/SiteCredential/index.html.twig | |||
@@ -0,0 +1,42 @@ | |||
1 | {% extends "WallabagCoreBundle::layout.html.twig" %} | ||
2 | |||
3 | {% block title %}{{ 'site_credential.page_title'|trans }}{% endblock %} | ||
4 | |||
5 | {% block content %} | ||
6 | |||
7 | <div class="row"> | ||
8 | <div class="col s12"> | ||
9 | <div class="card-panel"> | ||
10 | <div class="row"> | ||
11 | <div class="input-field col s12"> | ||
12 | <p class="help">{{ 'site_credential.description'|trans|raw }}</p> | ||
13 | |||
14 | <table class="bordered"> | ||
15 | <thead> | ||
16 | <tr> | ||
17 | <th>{{ 'site_credential.form.host_label'|trans }}</th> | ||
18 | <th>{{ 'site_credential.list.actions'|trans }}</th> | ||
19 | </tr> | ||
20 | </thead> | ||
21 | <tbody> | ||
22 | {% for credential in credentials %} | ||
23 | <tr> | ||
24 | <td>{{ credential.host }}</td> | ||
25 | <td> | ||
26 | <a href="{{ path('site_credentials_edit', { 'id': credential.id }) }}">{{ 'site_credential.list.edit_action'|trans }}</a> | ||
27 | </td> | ||
28 | </tr> | ||
29 | {% endfor %} | ||
30 | </tbody> | ||
31 | </table> | ||
32 | <br /> | ||
33 | <p> | ||
34 | <a href="{{ path('site_credentials_new') }}" class="waves-effect waves-light btn">{{ 'site_credential.list.create_new_one'|trans }}</a> | ||
35 | </p> | ||
36 | </div> | ||
37 | </div> | ||
38 | </div> | ||
39 | </div> | ||
40 | </div> | ||
41 | |||
42 | {% endblock %} | ||
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/SiteCredential/new.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/SiteCredential/new.html.twig new file mode 100644 index 00000000..3c008cde --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/SiteCredential/new.html.twig | |||
@@ -0,0 +1,53 @@ | |||
1 | {% extends "WallabagCoreBundle::layout.html.twig" %} | ||
2 | |||
3 | {% block title %}{{ 'site_credential.page_title'|trans }}{% endblock %} | ||
4 | |||
5 | {% block content %} | ||
6 | |||
7 | <div class="row"> | ||
8 | <div class="col s12"> | ||
9 | <div class="card-panel"> | ||
10 | <div class="row"> | ||
11 | <div class="input-field col s12"> | ||
12 | <h4>{{ 'site_credential.new_site_credential'|trans }}</h4> | ||
13 | |||
14 | <div id="set6" class="col s12"> | ||
15 | {{ form_start(form) }} | ||
16 | {{ form_errors(form) }} | ||
17 | |||
18 | <div class="row"> | ||
19 | <div class="input-field col s12"> | ||
20 | {{ form_label(form.host) }} | ||
21 | {{ form_errors(form.host) }} | ||
22 | {{ form_widget(form.host) }} | ||
23 | </div> | ||
24 | </div> | ||
25 | |||
26 | <div class="row"> | ||
27 | <div class="input-field col s12"> | ||
28 | {{ form_label(form.username) }} | ||
29 | {{ form_errors(form.username) }} | ||
30 | {{ form_widget(form.username) }} | ||
31 | </div> | ||
32 | </div> | ||
33 | |||
34 | <div class="row"> | ||
35 | <div class="input-field col s12"> | ||
36 | {{ form_label(form.password) }} | ||
37 | {{ form_errors(form.password) }} | ||
38 | {{ form_widget(form.password) }} | ||
39 | </div> | ||
40 | </div> | ||
41 | |||
42 | {{ form_widget(form.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }} | ||
43 | {{ form_rest(form) }} | ||
44 | </form> | ||
45 | <p><a class="waves-effect waves-light btn blue-grey" href="{{ path('site_credentials_index') }}">{{ 'site_credential.form.back_to_list'|trans }}</a></p> | ||
46 | </div> | ||
47 | </div> | ||
48 | </div> | ||
49 | </div> | ||
50 | </div> | ||
51 | </div> | ||
52 | |||
53 | {% endblock %} | ||
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Tag/tags.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Tag/tags.html.twig index 7509918e..070d5629 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Tag/tags.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Tag/tags.html.twig | |||
@@ -9,7 +9,12 @@ | |||
9 | 9 | ||
10 | <ul> | 10 | <ul> |
11 | {% for tag in tags %} | 11 | {% for tag in tags %} |
12 | <li id="tag-{{ tag.id|e }}"><a href="{{ path('tag_entries', {'slug': tag.slug}) }}">{{tag.label}} ({{ tag.nbEntries }})</a></li> | 12 | <li id="tag-{{ tag.id|e }}"> |
13 | <a href="{{ path('tag_entries', {'slug': tag.slug}) }}">{{tag.label}} ({{ tag.nbEntries }})</a> | ||
14 | <a rel="alternate" type="application/rss+xml" href="{{ path('tag_rss', {'username': app.user.username, 'token': app.user.config.rssToken, 'slug': tag.slug}) }}" class="right"> | ||
15 | <i class="material-icons md-24">rss_feed</i> | ||
16 | </a> | ||
17 | </li> | ||
13 | {% endfor %} | 18 | {% endfor %} |
14 | </ul> | 19 | </ul> |
15 | 20 | ||
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/layout.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/layout.html.twig index 42aeace9..17fa13bb 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/layout.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/layout.html.twig | |||
@@ -38,6 +38,9 @@ | |||
38 | {{ render(controller("WallabagCoreBundle:Entry:searchForm", {'currentRoute': app.request.attributes.get('_route')})) }} | 38 | {{ render(controller("WallabagCoreBundle:Entry:searchForm", {'currentRoute': app.request.attributes.get('_route')})) }} |
39 | </div> | 39 | </div> |
40 | </li> | 40 | </li> |
41 | {% if craue_setting('restricted_access') %} | ||
42 | <li class="menu site_credentials"><a href="{{ path('site_credentials_index') }}">{{ 'menu.left.site_credentials'|trans }}</a></li> | ||
43 | {% endif %} | ||
41 | <li class="menu config"><a href="{{ path('config') }}">{{ 'menu.left.config'|trans }}</a></li> | 44 | <li class="menu config"><a href="{{ path('config') }}">{{ 'menu.left.config'|trans }}</a></li> |
42 | {% if is_granted('ROLE_SUPER_ADMIN') %} | 45 | {% if is_granted('ROLE_SUPER_ADMIN') %} |
43 | <li class="menu users"><a href="{{ path('user_index') }}">{{ 'menu.left.users_management'|trans }}</a></li> | 46 | <li class="menu users"><a href="{{ path('user_index') }}">{{ 'menu.left.users_management'|trans }}</a></li> |
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/_rss_link.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/_rss_link.html.twig new file mode 100644 index 00000000..2bf9b2bd --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/_rss_link.html.twig | |||
@@ -0,0 +1,6 @@ | |||
1 | {% if tag is defined %} | ||
2 | <a rel="alternate" type="application/rss+xml" href="{{ path('tag_rss', {'username': app.user.username, 'token': app.user.config.rssToken, 'slug': tag.slug}) }}" class="right"><i class="material-icons md-24">rss_feed</i></a> | ||
3 | {% elseif currentRoute in ['unread', 'starred', 'archive', 'all'] %} | ||
4 | <a rel="alternate" type="application/rss+xml" href="{{ path(currentRoute ~ '_rss', {'username': app.user.username, 'token': app.user.config.rssToken}) }}" class="right"><i class="material-icons">rss_feed</i></a> | ||
5 | {% endif %} | ||
6 | |||
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/entries.xml.twig b/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/entries.xml.twig index 12e8c79f..d70aa5dc 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/entries.xml.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/entries.xml.twig | |||
@@ -1,8 +1,8 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:media="http://search.yahoo.com/mrss/"> | 2 | <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:media="http://search.yahoo.com/mrss/"> |
3 | <channel> | 3 | <channel> |
4 | <title>wallabag — {{type}} feed</title> | 4 | <title>wallabag - {{ type }} feed</title> |
5 | <link>{{ url(type) }}</link> | 5 | <link>{{ url_html }}</link> |
6 | <link rel="self" href="{{ app.request.uri }}"/> | 6 | <link rel="self" href="{{ app.request.uri }}"/> |
7 | {% if entries.hasPreviousPage -%} | 7 | {% if entries.hasPreviousPage -%} |
8 | <link rel="previous" href="{{ url }}?page={{ entries.previousPage }}"/> | 8 | <link rel="previous" href="{{ url }}?page={{ entries.previousPage }}"/> |
@@ -13,7 +13,7 @@ | |||
13 | <link rel="last" href="{{ url }}?page={{ entries.nbPages }}"/> | 13 | <link rel="last" href="{{ url }}?page={{ entries.nbPages }}"/> |
14 | <pubDate>{{ "now"|date('D, d M Y H:i:s') }}</pubDate> | 14 | <pubDate>{{ "now"|date('D, d M Y H:i:s') }}</pubDate> |
15 | <generator>wallabag</generator> | 15 | <generator>wallabag</generator> |
16 | <description>wallabag {{type}} elements</description> | 16 | <description>wallabag {{ type }} elements</description> |
17 | 17 | ||
18 | {% for entry in entries %} | 18 | {% for entry in entries %} |
19 | 19 | ||
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig index 9b0816eb..f290cb49 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig | |||
@@ -66,13 +66,13 @@ | |||
66 | </div> | 66 | </div> |
67 | </div> | 67 | </div> |
68 | 68 | ||
69 | <div class="row"> | 69 | <div class="row"> |
70 | <div class="input-field col s12"> | 70 | <div class="input-field col s12"> |
71 | {{ form_errors(form.config.action_mark_as_read) }} | 71 | {{ form_label(form.config.action_mark_as_read) }} |
72 | {{ form_widget(form.config.action_mark_as_read) }} | 72 | {{ form_errors(form.config.action_mark_as_read) }} |
73 | {{ form_label(form.config.action_mark_as_read) }} | 73 | {{ form_widget(form.config.action_mark_as_read) }} |
74 | </div> | ||
74 | </div> | 75 | </div> |
75 | </div> | ||
76 | 76 | ||
77 | <div class="row"> | 77 | <div class="row"> |
78 | <div class="input-field col s11"> | 78 | <div class="input-field col s11"> |
@@ -157,6 +157,7 @@ | |||
157 | <li><a href="{{ path('unread_rss', {'username': rss.username, 'token': rss.token}) }}">{{ 'config.form_rss.rss_link.unread'|trans }}</a></li> | 157 | <li><a href="{{ path('unread_rss', {'username': rss.username, 'token': rss.token}) }}">{{ 'config.form_rss.rss_link.unread'|trans }}</a></li> |
158 | <li><a href="{{ path('starred_rss', {'username': rss.username, 'token': rss.token}) }}">{{ 'config.form_rss.rss_link.starred'|trans }}</a></li> | 158 | <li><a href="{{ path('starred_rss', {'username': rss.username, 'token': rss.token}) }}">{{ 'config.form_rss.rss_link.starred'|trans }}</a></li> |
159 | <li><a href="{{ path('archive_rss', {'username': rss.username, 'token': rss.token}) }}">{{ 'config.form_rss.rss_link.archive'|trans }}</a></li> | 159 | <li><a href="{{ path('archive_rss', {'username': rss.username, 'token': rss.token}) }}">{{ 'config.form_rss.rss_link.archive'|trans }}</a></li> |
160 | <li><a href="{{ path('all_rss', {'username': rss.username, 'token': rss.token}) }}">{{ 'config.form_rss.rss_link.all'|trans }}</a></li> | ||
160 | </ul> | 161 | </ul> |
161 | </div> | 162 | </div> |
162 | </div> | 163 | </div> |
@@ -254,11 +255,11 @@ | |||
254 | {{ form_start(form.pwd) }} | 255 | {{ form_start(form.pwd) }} |
255 | {{ form_errors(form.pwd) }} | 256 | {{ form_errors(form.pwd) }} |
256 | 257 | ||
257 | <div class="row"> | 258 | <div class="row"> |
258 | <div class="input-field col s12"> | 259 | <div class="input-field col s12"> |
259 | {{ 'config.form_password.description'|trans }} | 260 | {{ 'config.form_password.description'|trans }} |
261 | </div> | ||
260 | </div> | 262 | </div> |
261 | </div> | ||
262 | 263 | ||
263 | <div class="row"> | 264 | <div class="row"> |
264 | <div class="input-field col s12"> | 265 | <div class="input-field col s12"> |
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig index 5ba42057..0c4dc80b 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig | |||
@@ -1,9 +1,16 @@ | |||
1 | {% extends "WallabagCoreBundle::layout.html.twig" %} | 1 | {% extends "WallabagCoreBundle::layout.html.twig" %} |
2 | 2 | ||
3 | {% block head %} | ||
4 | {{ parent() }} | ||
5 | {% if tag is defined and app.user.config.rssToken %} | ||
6 | <link rel="alternate" type="application/rss+xml" href="{{ path('tag_rss', {'username': app.user.username, 'token': app.user.config.rssToken, 'slug': tag.slug}) }}" /> | ||
7 | {% endif %} | ||
8 | {% endblock %} | ||
9 | |||
3 | {% block title %} | 10 | {% block title %} |
4 | {% set filter = '' %} | 11 | {% set filter = '' %} |
5 | {% if tag is defined %} | 12 | {% if tag is defined %} |
6 | {% set filter = tag %} | 13 | {% set filter = tag.slug %} |
7 | {% endif %} | 14 | {% endif %} |
8 | {% if searchTerm is defined and searchTerm is not empty %} | 15 | {% if searchTerm is defined and searchTerm is not empty %} |
9 | {% set filter = searchTerm %} | 16 | {% set filter = searchTerm %} |
@@ -13,10 +20,14 @@ | |||
13 | 20 | ||
14 | {% block content %} | 21 | {% block content %} |
15 | {% set listMode = app.user.config.listMode %} | 22 | {% set listMode = app.user.config.listMode %} |
23 | {% set currentRoute = app.request.attributes.get('_route') %} | ||
16 | <div class="results clearfix"> | 24 | <div class="results clearfix"> |
17 | <div class="nb-results left"> | 25 | <div class="nb-results left"> |
18 | {{ 'entry.list.number_on_the_page'|transchoice(entries.count) }} | 26 | {{ 'entry.list.number_on_the_page'|transchoice(entries.count) }} |
19 | <a href="{{ path('switch_view_mode') }}"><i class="material-icons">{% if listMode == 0 %}view_list{% else %}view_module{% endif %}</i></a> | 27 | <a href="{{ path('switch_view_mode') }}"><i class="material-icons">{% if listMode == 0 %}view_list{% else %}view_module{% endif %}</i></a> |
28 | {% if app.user.config.rssToken %} | ||
29 | {% include "@WallabagCore/themes/common/Entry/_rss_link.html.twig" %} | ||
30 | {% endif %} | ||
20 | </div> | 31 | </div> |
21 | {% if entries.getNbPages > 1 %} | 32 | {% if entries.getNbPages > 1 %} |
22 | {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }} | 33 | {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }} |
@@ -46,10 +57,9 @@ | |||
46 | 57 | ||
47 | <!-- Export --> | 58 | <!-- Export --> |
48 | <div id="export" class="side-nav right-aligned"> | 59 | <div id="export" class="side-nav right-aligned"> |
49 | {% set currentRoute = app.request.attributes.get('_route') %} | ||
50 | {% set currentTag = '' %} | 60 | {% set currentTag = '' %} |
51 | {% if tag is defined %} | 61 | {% if tag is defined %} |
52 | {% set currentTag = tag %} | 62 | {% set currentTag = tag.slug %} |
53 | {% endif %} | 63 | {% endif %} |
54 | {% if currentRoute == 'homepage' %} | 64 | {% if currentRoute == 'homepage' %} |
55 | {% set currentRoute = 'unread' %} | 65 | {% set currentRoute = 'unread' %} |
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/SiteCredential/edit.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/SiteCredential/edit.html.twig new file mode 100644 index 00000000..882be430 --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/SiteCredential/edit.html.twig | |||
@@ -0,0 +1,60 @@ | |||
1 | {% extends "WallabagCoreBundle::layout.html.twig" %} | ||
2 | |||
3 | {% block title %}{{ 'site_credential.page_title'|trans }}{% endblock %} | ||
4 | |||
5 | {% block content %} | ||
6 | |||
7 | <div class="row"> | ||
8 | <div class="col s12"> | ||
9 | <div class="card-panel"> | ||
10 | <div class="row"> | ||
11 | <div class="input-field col s12"> | ||
12 | <h4>{{ 'site_credential.edit_site_credential'|trans }}</h4> | ||
13 | |||
14 | <div id="set6" class="col s12"> | ||
15 | {{ form_start(edit_form) }} | ||
16 | {{ form_errors(edit_form) }} | ||
17 | |||
18 | <div class="row"> | ||
19 | <div class="input-field col s12"> | ||
20 | {{ form_label(edit_form.host) }} | ||
21 | {{ form_errors(edit_form.host) }} | ||
22 | {{ form_widget(edit_form.host) }} | ||
23 | </div> | ||
24 | </div> | ||
25 | |||
26 | <div class="row"> | ||
27 | <div class="input-field col s12"> | ||
28 | {{ form_label(edit_form.username) }} | ||
29 | {{ form_errors(edit_form.username) }} | ||
30 | {{ form_widget(edit_form.username) }} | ||
31 | </div> | ||
32 | </div> | ||
33 | |||
34 | <div class="row"> | ||
35 | <div class="input-field col s12"> | ||
36 | {{ form_label(edit_form.password) }} | ||
37 | {{ form_errors(edit_form.password) }} | ||
38 | {{ form_widget(edit_form.password) }} | ||
39 | </div> | ||
40 | </div> | ||
41 | |||
42 | <br/> | ||
43 | |||
44 | {{ form_widget(edit_form.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }} | ||
45 | {{ form_widget(edit_form._token) }} | ||
46 | </form> | ||
47 | <p> | ||
48 | {{ form_start(delete_form) }} | ||
49 | <button onclick="return confirm('{{ 'site_credential.form.delete_confirm'|trans|escape('js') }}')" type="submit" class="btn waves-effect waves-light red">{{ 'site_credential.form.delete'|trans }}</button> | ||
50 | {{ form_end(delete_form) }} | ||
51 | </p> | ||
52 | <p><a class="waves-effect waves-light btn blue-grey" href="{{ path('site_credentials_index') }}">{{ 'site_credential.form.back_to_list'|trans }}</a></p> | ||
53 | </div> | ||
54 | </div> | ||
55 | </div> | ||
56 | </div> | ||
57 | </div> | ||
58 | </div> | ||
59 | |||
60 | {% endblock %} | ||
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/SiteCredential/index.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/SiteCredential/index.html.twig new file mode 100644 index 00000000..324854ad --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/SiteCredential/index.html.twig | |||
@@ -0,0 +1,42 @@ | |||
1 | {% extends "WallabagCoreBundle::layout.html.twig" %} | ||
2 | |||
3 | {% block title %}{{ 'site_credential.page_title'|trans }}{% endblock %} | ||
4 | |||
5 | {% block content %} | ||
6 | |||
7 | <div class="row"> | ||
8 | <div class="col s12"> | ||
9 | <div class="card-panel"> | ||
10 | <div class="row"> | ||
11 | <div class="input-field col s12"> | ||
12 | <p class="help">{{ 'site_credential.description'|trans|raw }}</p> | ||
13 | |||
14 | <table class="bordered"> | ||
15 | <thead> | ||
16 | <tr> | ||
17 | <th>{{ 'site_credential.form.host_label'|trans }}</th> | ||
18 | <th>{{ 'site_credential.list.actions'|trans }}</th> | ||
19 | </tr> | ||
20 | </thead> | ||
21 | <tbody> | ||
22 | {% for credential in credentials %} | ||
23 | <tr> | ||
24 | <td>{{ credential.host }}</td> | ||
25 | <td> | ||
26 | <a href="{{ path('site_credentials_edit', { 'id': credential.id }) }}">{{ 'site_credential.list.edit_action'|trans }}</a> | ||
27 | </td> | ||
28 | </tr> | ||
29 | {% endfor %} | ||
30 | </tbody> | ||
31 | </table> | ||
32 | <br /> | ||
33 | <p> | ||
34 | <a href="{{ path('site_credentials_new') }}" class="waves-effect waves-light btn">{{ 'site_credential.list.create_new_one'|trans }}</a> | ||
35 | </p> | ||
36 | </div> | ||
37 | </div> | ||
38 | </div> | ||
39 | </div> | ||
40 | </div> | ||
41 | |||
42 | {% endblock %} | ||
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/SiteCredential/new.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/SiteCredential/new.html.twig new file mode 100644 index 00000000..3c008cde --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/SiteCredential/new.html.twig | |||
@@ -0,0 +1,53 @@ | |||
1 | {% extends "WallabagCoreBundle::layout.html.twig" %} | ||
2 | |||
3 | {% block title %}{{ 'site_credential.page_title'|trans }}{% endblock %} | ||
4 | |||
5 | {% block content %} | ||
6 | |||
7 | <div class="row"> | ||
8 | <div class="col s12"> | ||
9 | <div class="card-panel"> | ||
10 | <div class="row"> | ||
11 | <div class="input-field col s12"> | ||
12 | <h4>{{ 'site_credential.new_site_credential'|trans }}</h4> | ||
13 | |||
14 | <div id="set6" class="col s12"> | ||
15 | {{ form_start(form) }} | ||
16 | {{ form_errors(form) }} | ||
17 | |||
18 | <div class="row"> | ||
19 | <div class="input-field col s12"> | ||
20 | {{ form_label(form.host) }} | ||
21 | {{ form_errors(form.host) }} | ||
22 | {{ form_widget(form.host) }} | ||
23 | </div> | ||
24 | </div> | ||
25 | |||
26 | <div class="row"> | ||
27 | <div class="input-field col s12"> | ||
28 | {{ form_label(form.username) }} | ||
29 | {{ form_errors(form.username) }} | ||
30 | {{ form_widget(form.username) }} | ||
31 | </div> | ||
32 | </div> | ||
33 | |||
34 | <div class="row"> | ||
35 | <div class="input-field col s12"> | ||
36 | {{ form_label(form.password) }} | ||
37 | {{ form_errors(form.password) }} | ||
38 | {{ form_widget(form.password) }} | ||
39 | </div> | ||
40 | </div> | ||
41 | |||
42 | {{ form_widget(form.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }} | ||
43 | {{ form_rest(form) }} | ||
44 | </form> | ||
45 | <p><a class="waves-effect waves-light btn blue-grey" href="{{ path('site_credentials_index') }}">{{ 'site_credential.form.back_to_list'|trans }}</a></p> | ||
46 | </div> | ||
47 | </div> | ||
48 | </div> | ||
49 | </div> | ||
50 | </div> | ||
51 | </div> | ||
52 | |||
53 | {% endblock %} | ||
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Tag/tags.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Tag/tags.html.twig index c83543ac..97ddedc9 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Tag/tags.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Tag/tags.html.twig | |||
@@ -14,6 +14,9 @@ | |||
14 | {% for tag in tags %} | 14 | {% for tag in tags %} |
15 | <li title="{{tag.label}} ({{ tag.nbEntries }})" id="tag-{{ tag.id }}" class="col l2 m2 s5"> | 15 | <li title="{{tag.label}} ({{ tag.nbEntries }})" id="tag-{{ tag.id }}" class="col l2 m2 s5"> |
16 | <a href="{{ path('tag_entries', {'slug': tag.slug}) }}">{{tag.label}} ({{ tag.nbEntries }})</a> | 16 | <a href="{{ path('tag_entries', {'slug': tag.slug}) }}">{{tag.label}} ({{ tag.nbEntries }})</a> |
17 | {% if app.user.config.rssToken %} | ||
18 | <a rel="alternate" type="application/rss+xml" href="{{ path('tag_rss', {'username': app.user.username, 'token': app.user.config.rssToken, 'slug': tag.slug}) }}" class="right"><i class="material-icons">rss_feed</i></a> | ||
19 | {% endif %} | ||
17 | </li> | 20 | </li> |
18 | {% endfor %} | 21 | {% endfor %} |
19 | </ul> | 22 | </ul> |
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/layout.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/layout.html.twig index 2dab1c18..60907e11 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/layout.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/layout.html.twig | |||
@@ -66,6 +66,11 @@ | |||
66 | <li class="bold {% if currentRoute == 'config' %}active{% endif %}"> | 66 | <li class="bold {% if currentRoute == 'config' %}active{% endif %}"> |
67 | <a class="waves-effect" href="{{ path('config') }}">{{ 'menu.left.config'|trans }}</a> | 67 | <a class="waves-effect" href="{{ path('config') }}">{{ 'menu.left.config'|trans }}</a> |
68 | </li> | 68 | </li> |
69 | {% if craue_setting('restricted_access') %} | ||
70 | <li class="bold {% if currentRoute starts with 'site_credentials_' %}active{% endif %}"> | ||
71 | <a class="waves-effect" href="{{ path('site_credentials_index') }}">{{ 'menu.left.site_credentials'|trans }}</a> | ||
72 | </li> | ||
73 | {% endif %} | ||
69 | {% if is_granted('ROLE_SUPER_ADMIN') %} | 74 | {% if is_granted('ROLE_SUPER_ADMIN') %} |
70 | <li class="bold {% if currentRoute starts with 'user_' %}active{% endif %}"> | 75 | <li class="bold {% if currentRoute starts with 'user_' %}active{% endif %}"> |
71 | <a class="waves-effect" href="{{ path('user_index') }}">{{ 'menu.left.users_management'|trans }}</a> | 76 | <a class="waves-effect" href="{{ path('user_index') }}">{{ 'menu.left.users_management'|trans }}</a> |