JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
metaform: hide img/thumb when blank
authorJason Woofenden <jason@jasonwoof.com>
Wed, 27 Oct 2010 04:30:42 +0000 (00:30 -0400)
committerJason Woofenden <jason@jasonwoof.com>
Wed, 27 Oct 2010 04:30:42 +0000 (00:30 -0400)
metaform/template.html

index b4fe002..b7ea072 100644 (file)
@@ -43,7 +43,7 @@
 
                <table border="0" cellpadding="3" cellspacing="0" summary="">
 <!--~display_fields {~--><!--~image {~-->
-                       <tr><td class="caption">~caption html~:</td><td><img src="~~~name~ image_src~~" width="~~~name~ image_width~~" height="~~~name~ image_height~~" alt=""></td></tr>
+                       <tr><td class="caption">~caption html~:</td><td><!--~~~name~ nonempty {~~--><img src="~~~name~ image_src~~" width="~~~name~ image_width~~" height="~~~name~ image_height~~" alt=""><!--~~}~~--></td></tr>
 <!--~}~--><!--~checkbox {~-->
                        <tr><td class="caption">~caption html~:</td><td>~~~name~ yesno~~</td></tr>
 <!--~}~--><!--~date {~-->
                        <table cellspacing="0" cellpadding="4" border="1" summary="">
                                <!--~listing_headers {~--><th>~caption~</th><!--~}~--><th>&nbsp;</th><!--~~rows {~~-->
                                <tr><!--~listing_fields {~-->
-                                       <td class="listing"><a href="~file_name~?~file_name~_<!--~opt_display unset {~-->edit_<!--~}~-->id=~~id~~"><!--~enc {~-->~~~name~ ~enc~~~<!--~}~--><!--~thumb {~--><img src="~~~name~ thumb_src~~" width="~~~name~ thumb_width~~" height="~~~name~ thumb_height~~" alt=""><!--~}~--></a></td><!--~}~-->
+                                       <td class="listing"><a href="~file_name~?~file_name~_<!--~opt_display unset {~-->edit_<!--~}~-->id=~~id~~"><!--~enc {~-->~~~name~ ~enc~~~<!--~}~--><!--~thumb {~--><!--~~~name~ nonempty {~~--><img src="~~~name~ thumb_src~~" width="~~~name~ thumb_width~~" height="~~~name~ thumb_height~~" alt=""><!--~~}~~--><!--~}~--></a></td><!--~}~-->
                                        <td><a href="~file_name~?~file_name~_delete_id=~~id~~" onclick="return confirm('Permanently delete?')">[delete this ~singular~]</a></td>
                                </tr><!--~~}~~-->