Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alain Takoudjou
erp5
Commits
04b2f524
Commit
04b2f524
authored
Nov 15, 2011
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use unified way to requets an image (i.e. with proper format, quality and size).
parent
3bf3f922
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/Document_viewPopupTemplate.xml
...ns/erp5_web_widget_library/Document_viewPopupTemplate.xml
+4
-3
bt5/erp5_web/bt/revision
bt5/erp5_web/bt/revision
+1
-1
No files found.
bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/Document_viewPopupTemplate.xml
View file @
04b2f524
...
...
@@ -49,8 +49,9 @@
thumbnail_url python: options.get(\'thumbnail_url\', None);\n
url python: options.get(\'url\', None);\n
sections python: options.get(\'sections\', None);\n
format python: request.get(\'format\', context.portal_preferences.getPreference(\'preferred_image_format\', \'png\'));\n
quality python: request.get(\'format\', context.portal_preferences.getPreference(\'preferred_image_quality\', \'75.0\'))">
\n
image_conversion_dict here/Base_getImageArgumentDict;\n
dummy python: image_conversion_dict.update(**{\'display\':\'thumbnail\'});\n
image_conversion_arguments python: \'&\'.join([\'%s=%s\' % (k, v) for k, v in image_conversion_dict.items()]);">
\n
\n
<span
id=
"listbox-preview-connector"
></span>
\n
\n
...
...
@@ -58,7 +59,7 @@
<a
tal:attributes=
"href url"
>
\n
<img
alt=
"Thumbnail"
\n
i18n:translate=
"alt"
i18n:domain=
"ui"
\n
tal:attributes=
"src string:${thumbnail_url}
?display=thumbnail&format=${format}&quality=${quality
}"
/>
\n
tal:attributes=
"src string:${thumbnail_url}
/index_html?${image_conversion_arguments
}"
/>
\n
</a>
\n
</div>
\n
\n
...
...
bt5/erp5_web/bt/revision
View file @
04b2f524
1068
\ No newline at end of file
1069
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment