diff options
author | Jeremy Benoist <j0k3r@users.noreply.github.com> | 2016-04-10 09:49:10 +0200 |
---|---|---|
committer | Jeremy Benoist <j0k3r@users.noreply.github.com> | 2016-04-10 09:49:10 +0200 |
commit | 19a7ea2a44548f312ea132afa76a8e5503a2f5e2 (patch) | |
tree | 1242659bb3fdb83dab87e97108ea18df619f5b0a /src/Wallabag | |
parent | 2504fe46ed8090f52a12e627f7d6eff100eee4b4 (diff) | |
parent | cb48a569e0ea76a7f6ce1275ae6144d3497deb84 (diff) | |
download | wallabag-19a7ea2a44548f312ea132afa76a8e5503a2f5e2.tar.gz wallabag-19a7ea2a44548f312ea132afa76a8e5503a2f5e2.tar.zst wallabag-19a7ea2a44548f312ea132afa76a8e5503a2f5e2.zip |
Merge pull request #1896 from wallabag/v2-fix-internal-settings
Fix internal settings
Diffstat (limited to 'src/Wallabag')
5 files changed, 13 insertions, 12 deletions
diff --git a/src/Wallabag/CoreBundle/Command/InstallCommand.php b/src/Wallabag/CoreBundle/Command/InstallCommand.php index 6665f4b5..c5a5a519 100644 --- a/src/Wallabag/CoreBundle/Command/InstallCommand.php +++ b/src/Wallabag/CoreBundle/Command/InstallCommand.php | |||
@@ -232,11 +232,6 @@ class InstallCommand extends ContainerAwareCommand | |||
232 | 232 | ||
233 | $settings = [ | 233 | $settings = [ |
234 | [ | 234 | [ |
235 | 'name' => 'download_pictures', | ||
236 | 'value' => '1', | ||
237 | 'section' => 'entry', | ||
238 | ], | ||
239 | [ | ||
240 | 'name' => 'carrot', | 235 | 'name' => 'carrot', |
241 | 'value' => '1', | 236 | 'value' => '1', |
242 | 'section' => 'entry', | 237 | 'section' => 'entry', |
diff --git a/src/Wallabag/CoreBundle/DataFixtures/ORM/LoadSettingData.php b/src/Wallabag/CoreBundle/DataFixtures/ORM/LoadSettingData.php index 1f4cafdf..09058796 100644 --- a/src/Wallabag/CoreBundle/DataFixtures/ORM/LoadSettingData.php +++ b/src/Wallabag/CoreBundle/DataFixtures/ORM/LoadSettingData.php | |||
@@ -16,11 +16,6 @@ class LoadSettingData extends AbstractFixture implements OrderedFixtureInterface | |||
16 | { | 16 | { |
17 | $settings = [ | 17 | $settings = [ |
18 | [ | 18 | [ |
19 | 'name' => 'download_pictures', | ||
20 | 'value' => '1', | ||
21 | 'section' => 'entry', | ||
22 | ], | ||
23 | [ | ||
24 | 'name' => 'carrot', | 19 | 'name' => 'carrot', |
25 | 'value' => '1', | 20 | 'value' => '1', |
26 | 'section' => 'entry', | 21 | 'section' => 'entry', |
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml index 3dc22998..8f3e4267 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml | |||
@@ -176,7 +176,7 @@ entry: | |||
176 | set_as_read: 'Mark as read' | 176 | set_as_read: 'Mark as read' |
177 | set_as_unread: 'Mark as unread' | 177 | set_as_unread: 'Mark as unread' |
178 | set_as_favorite: 'Favorite' | 178 | set_as_favorite: 'Favorite' |
179 | view_original_article: 'Orignal article' | 179 | view_original_article: 'Original article' |
180 | re_fetch_content: 'Re-fetch content' | 180 | re_fetch_content: 'Re-fetch content' |
181 | delete: 'Delete' | 181 | delete: 'Delete' |
182 | add_a_tag: 'Add a tag' | 182 | add_a_tag: 'Add a tag' |
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig index 3cda3949..5a800332 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig | |||
@@ -22,7 +22,7 @@ | |||
22 | {% if craue_setting('share_shaarli') %}<li><a href="{{ craue_setting('shaarli_url') }}/index.php?post={{ entry.url|url_encode }}&title={{ entry.title|url_encode }}" target="_blank" class="tool shaarli" title="shaarli"><span>shaarli</span></a></li>{% endif %} | 22 | {% if craue_setting('share_shaarli') %}<li><a href="{{ craue_setting('shaarli_url') }}/index.php?post={{ entry.url|url_encode }}&title={{ entry.title|url_encode }}" target="_blank" class="tool shaarli" title="shaarli"><span>shaarli</span></a></li>{% endif %} |
23 | {% if craue_setting('share_diaspora') %}<li><a href="{{ craue_setting('diaspora_url') }}/bookmarklet?url={{ entry.url|url_encode }}&title={{ entry.title|url_encode }}¬es=&v=1&noui=1&jump=doclose" target="_blank" class="tool diaspora icon-image icon-image--diaspora" title="diaspora"><span>diaspora</span></a></li>{% endif %} | 23 | {% if craue_setting('share_diaspora') %}<li><a href="{{ craue_setting('diaspora_url') }}/bookmarklet?url={{ entry.url|url_encode }}&title={{ entry.title|url_encode }}¬es=&v=1&noui=1&jump=doclose" target="_blank" class="tool diaspora icon-image icon-image--diaspora" title="diaspora"><span>diaspora</span></a></li>{% endif %} |
24 | {% if craue_setting('carrot') %}<li><a href="https://secure.carrot.org/GiveAndGetBack.do?url={{ entry.url|url_encode }}&title={{ entry.title|url_encode }}" class="tool carrot icon-image icon-image--carrot" target="_blank" title="carrot"><span>Carrot</span></a></li>{% endif %} | 24 | {% if craue_setting('carrot') %}<li><a href="https://secure.carrot.org/GiveAndGetBack.do?url={{ entry.url|url_encode }}&title={{ entry.title|url_encode }}" class="tool carrot icon-image icon-image--carrot" target="_blank" title="carrot"><span>Carrot</span></a></li>{% endif %} |
25 | {% if craue_setting('show_printlink') %}<li><a title="{{ 'entry.view.left_menu.print'|trans }}" class="tool icon icon-print" href="javascript: window.print();"><span>{{ 'entry.view.left_menu.re_fetch_content'|trans }}</span></a></li>{% endif %} | 25 | {% if craue_setting('show_printlink') %}<li><a title="{{ 'entry.view.left_menu.print'|trans }}" class="tool icon icon-print" href="javascript: window.print();"><span>{{ 'entry.view.left_menu.print'|trans }}</span></a></li>{% endif %} |
26 | {% if craue_setting('export_epub') %}<li><a href="?epub&method=id&value={{ entry.id }}" title="Generate ePub file">EPUB</a></li>{% endif %} | 26 | {% if craue_setting('export_epub') %}<li><a href="?epub&method=id&value={{ entry.id }}" title="Generate ePub file">EPUB</a></li>{% endif %} |
27 | {% if craue_setting('export_mobi') %}<li><a href="?mobi&method=id&value={{ entry.id }}" title="Generate Mobi file">MOBI</a></li>{% endif %} | 27 | {% if craue_setting('export_mobi') %}<li><a href="?mobi&method=id&value={{ entry.id }}" title="Generate Mobi file">MOBI</a></li>{% endif %} |
28 | {% if craue_setting('export_pdf') %}<li><a href="?pdf&method=id&value={{ entry.id }}" title="Generate PDF file">PDF</a></li>{% endif %} | 28 | {% if craue_setting('export_pdf') %}<li><a href="?pdf&method=id&value={{ entry.id }}" title="Generate PDF file">PDF</a></li>{% endif %} |
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig index 66435699..e89aea3a 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig | |||
@@ -138,6 +138,17 @@ | |||
138 | </div> | 138 | </div> |
139 | </li> | 139 | </li> |
140 | 140 | ||
141 | {% if craue_setting('show_printlink') %} | ||
142 | <li class="bold border-bottom hide-on-med-and-down"> | ||
143 | <a class="waves-effect collapsible-header" title="{{ 'entry.view.left_menu.print'|trans }}" href="javascript: window.print();"> | ||
144 | <i class="mdi-action-print small"></i> | ||
145 | <span>{{ 'entry.view.left_menu.print'|trans }}</span> | ||
146 | </a> | ||
147 | <div class="collapsible-body"></div> | ||
148 | </li> | ||
149 | {% endif %} | ||
150 | |||
151 | |||
141 | <li class="bold"> | 152 | <li class="bold"> |
142 | <a class="waves-effect collapsible-header"> | 153 | <a class="waves-effect collapsible-header"> |
143 | <i class="mdi-file-file-download small"></i> | 154 | <i class="mdi-file-file-download small"></i> |