Commit 9ebebe02 authored by Ivan Tyagov's avatar Ivan Tyagov

Use preferences to determine preferred image format & size rather than use hard code values.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36937 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 54dde15f
...@@ -42,8 +42,8 @@ ...@@ -42,8 +42,8 @@
<div class="pdf-preview-content"\n <div class="pdf-preview-content"\n
tal:define="frame request/frame|\n tal:define="frame request/frame|\n
python:here.PDF_getPageNumberFromSelectionIndex(request.get(\'selection_index\', 0));\n python:here.PDF_getPageNumberFromSelectionIndex(request.get(\'selection_index\', 0));\n
display request/display|string:xlarge;\n display python: request.get(\'display\', context.portal_preferences.getPreference(\'preferred_image_size\', \'large\'));\n
format request/format|string:png;">\n format python: request.get(\'format\', context.portal_preferences.getPreference(\'preferred_image_format\', \'png\'))">\n
<img src="" alt=""\n <img src="" alt=""\n
tal:attributes="src\n tal:attributes="src\n
string:${here/absolute_url}/index_html?display=${display}&format=${format}&frame=${frame}&resolution:int=300"/>\n string:${here/absolute_url}/index_html?display=${display}&format=${format}&frame=${frame}&resolution:int=300"/>\n
......
1156 1157
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment