From: Ernesto B. <ba...@us...> - 2003-03-09 23:40:30
|
Update of /cvsroot/gallery/gallery2/modules/imagemagick/templates In directory sc8-pr-cvs1:/tmp/cvs-serv14636/templates Modified Files: Tag: graphics-refactor-branch AdminImageMagick.tpl Log Message: * When activating the ImageMagick module, check which MIME types the binaries really support and save this information in the GalleryToolkit*Maps * When trying to save the path of the ImageMagick binaries (when changing it or setting it in the first place), check if the ImageMagick binaries there really work. * In the ImageMagic Admin 'Test binaries' view, added the output of a list of the supported MIME types (just for the admins information). Index: AdminImageMagick.tpl =================================================================== RCS file: /cvsroot/gallery/gallery2/modules/imagemagick/templates/AdminImageMagick.tpl,v retrieving revision 1.5 retrieving revision 1.5.2.1 diff -u -r1.5 -r1.5.2.1 --- AdminImageMagick.tpl 2 Mar 2003 00:52:07 -0000 1.5 +++ AdminImageMagick.tpl 9 Mar 2003 23:40:26 -0000 1.5.2.1 @@ -49,6 +49,26 @@ </tr> <!-- {/if} --> + <!-- {if isset($form.error.path.testError)} --> + <tr> + <td colspan="2" align="center"> + {gallery->errorFontColor} + {gallery->text text="The path you entered doesn't contain valid ImageMagick binaries. Use the 'test' button to check where the error is."} + {/gallery->errorFontColor} + </td> + </tr> + <!-- {/if} --> + + <!-- {if isset($form.error.path.badPath)} --> + <tr> + <td colspan="2" align="center"> + {gallery->errorFontColor} + {gallery->text text="The path you entered isn't a valid path."} + {/gallery->errorFontColor} + </td> + </tr> + <!-- {/if} --> + <tr> <td align="right"> {gallery->text text="JPEG Quality"} @@ -109,12 +129,12 @@ </td> </tr> - {if empty($test.success) && !empty($test.results)} + {if ! $test.success && ! empty($test.message)} <tr> <td colspan="2"> {gallery->text text="Error messages:"} <br> - {foreach from=$test.results item=line} + {foreach from=$test.message item=line} <pre>{$line}</pre> {/foreach} </td> @@ -122,7 +142,25 @@ {/if} {/foreach} - </table> + + {if $mimeTypes} + <tr> + <td colspan="2"> + + </td> + </tr> + + <tr> + <th> {gallery->text text="Supported MIME Types"} </th> + <td align="center"> + {foreach from=$mimeTypes item=mimeType} + {$mimeType}<br> + {/foreach} + </td> + </tr> + {/if} + + </table> </td> </tr> {/if} |