From: Jeremy Benoist Date: Sat, 10 Jun 2017 10:13:30 +0000 (+0200) Subject: Better export page X-Git-Tag: 2.3.0~31^2~48^2~6 X-Git-Url: https://git.immae.eu/?p=github%2Fwallabag%2Fwallabag.git;a=commitdiff_plain;h=77c5140bed9271bd34d561fa656ea6f2b12bed1f Better export page I’ve increase the width of the page 900px, 600px looks too small for me. Should we use something like 90% instead? --- diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.da.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.da.yml index 6574e587..5229ac73 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.da.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.da.yml @@ -159,6 +159,7 @@ config: # and: 'One rule AND another' # matches: 'Tests that a subject is matches a search (case-insensitive).
Example: title matches "football"' # notmatches: 'Tests that a subject is not matches a search (case-insensitive).
Example: title notmatches "football"' + entry: page_titles: # unread: 'Unread entries' @@ -244,7 +245,7 @@ entry: url_label: 'Url' save_label: 'Gem' public: - # shared_by_wallabag: "This article has been shared by wallabag" + # shared_by_wallabag: "This article has been shared by %username% with wallabag" confirm: # delete: "Are you sure you want to remove that article?" # delete_tag: "Are you sure you want to remove that tag from that article?" diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml index 49e9eab3..aa1cd1a9 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml @@ -245,7 +245,7 @@ entry: url_label: 'Url' save_label: 'Save' public: - shared_by_wallabag: "This article has been shared by wallabag" + shared_by_wallabag: "This article has been shared by %username% with wallabag" confirm: delete: "Are you sure you want to remove that article?" delete_tag: "Are you sure you want to remove that tag from that article?" diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml index 15460ef7..57e6c029 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml @@ -245,7 +245,7 @@ entry: url_label: 'نشانی' save_label: 'ذخیره' public: - # shared_by_wallabag: "This article has been shared by wallabag" + # shared_by_wallabag: "This article has been shared by %username% with wallabag" confirm: # delete: "Are you sure you want to remove that article?" # delete_tag: "Are you sure you want to remove that tag from that article?" diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml index 0d9fda5f..6eac4c36 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml @@ -245,7 +245,7 @@ entry: url_label: "Adresse" save_label: "Enregistrer" public: - shared_by_wallabag: "Cet article a été partagé par wallabag" + shared_by_wallabag: "Cet article a été partagé par %username% avec wallabag" confirm: delete: "Voulez-vous vraiment supprimer cet article ?" delete_tag: "Voulez-vous vraiment supprimer ce tag de cet article ?" diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.it.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.it.yml index 669a1aa3..73081ca5 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.it.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.it.yml @@ -245,7 +245,7 @@ entry: url_label: 'Url' save_label: 'Salva' public: - # shared_by_wallabag: "This article has been shared by wallabag" + # shared_by_wallabag: "This article has been shared by %username% with wallabag" confirm: delete: "Vuoi veramente rimuovere quell'articolo?" delete_tag: "Vuoi veramente rimuovere quell'etichetta da quell'articolo?" diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml index c663b23e..f16504ed 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml @@ -245,7 +245,7 @@ entry: url_label: 'Url' save_label: 'Salvează' public: - # shared_by_wallabag: "This article has been shared by wallabag" + # shared_by_wallabag: "This article has been shared by %username% with wallabag" confirm: # delete: "Are you sure you want to remove that article?" # delete_tag: "Are you sure you want to remove that tag from that article?" diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml index e0e752e0..90a140cd 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml @@ -243,7 +243,7 @@ entry: url_label: 'Url' save_label: 'Kaydet' public: - # shared_by_wallabag: "This article has been shared by wallabag" + # shared_by_wallabag: "This article has been shared by %username% with wallabag" confirm: # delete: "Are you sure you want to remove that article?" # delete_tag: "Are you sure you want to remove that tag from that article?" diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig index 623cf1c4..3828c296 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig @@ -24,7 +24,7 @@ article { margin: 0 auto; - width: 600px; + width: 900px; } @@ -45,7 +45,11 @@

{{ entry.title|e|raw }}

{{ entry.domainName|removeWww }}
-
{{ "entry.public.shared_by_wallabag"|trans({'%wallabag_instance%': url('homepage')})|raw }}
+
{{ "entry.public.shared_by_wallabag"|trans({'%wallabag_instance%': url('homepage'), '%username%': entry.user.username})|raw }}.
+ + {% if entry.previewPicture is not null %} +
{{ entry.title|striptags|e('html_attr') }}
+ {% endif %}
{{ entry.content | raw }}