* Resources/list: Fix thumbnails size in resources' listview

This commit is contained in:
Hadi Nategh 2014-08-27 08:14:07 +00:00
parent 7941e8e683
commit d3e9374184
2 changed files with 2 additions and 6 deletions

View File

@ -251,7 +251,7 @@ class resources_bo
} }
else else
{ {
$rows[$num]['picture_thumb'] = $this->get_picture($resource); $rows[$num]['picture_thumb'] = $this->get_picture($resource, true);
} }
$rows[$num]['admin'] = $this->acl->get_cat_admin($resource['cat_id']); $rows[$num]['admin'] = $this->acl->get_cat_admin($resource['cat_id']);
} }
@ -830,10 +830,6 @@ class resources_bo
{ {
$picture = egw::link(egw_vfs::download_url($picture)); $picture = egw::link(egw_vfs::download_url($picture));
} }
else
{
$picture = egw::link('/etemplate/thumbnail.php',array('path' => $picture));
}
break; break;
case 'cat_src': case 'cat_src':

View File

@ -38,7 +38,7 @@
<nextmatch-customfields id="customfields"/> <nextmatch-customfields id="customfields"/>
</row> </row>
<row class="$row_cont[class]"> <row class="$row_cont[class]">
<image id="${row}[picture_thumb]" extra_link_target="_blank" href="webdav.php/apps/resources/${row_cont[res_id]}/.picture.jpg" src="${row}[picture_thumb]" /> <image id="${row}[picture_thumb]" width="100%" extra_link_target="_blank" href="webdav.php/apps/resources/${row_cont[res_id]}/.picture.jpg" src="${row}[picture_thumb]" />
<vbox> <vbox>
<description id="${row}[name]" no_lang="1"/> <description id="${row}[name]" no_lang="1"/>
<description id="${row}[short_description]" no_lang="1"/> <description id="${row}[short_description]" no_lang="1"/>