Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
66420bc
)
metaform: hide img/thumb when blank
author
Jason Woofenden
<jason@jasonwoof.com>
Wed, 27 Oct 2010 04:30:42 +0000
(
00:30
-0400)
committer
Jason Woofenden
<jason@jasonwoof.com>
Wed, 27 Oct 2010 04:30:42 +0000
(
00:30
-0400)
metaform/template.html
patch
|
blob
|
history
diff --git
a/metaform/template.html
b/metaform/template.html
index
b4fe002
..
b7ea072
100644
(file)
--- a/
metaform/template.html
+++ b/
metaform/template.html
@@
-43,7
+43,7
@@
<table border="0" cellpadding="3" cellspacing="0" summary="">
<!--~display_fields {~--><!--~image {~-->
<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 {~-->
<!--~}~--><!--~checkbox {~-->
<tr><td class="caption">~caption html~:</td><td>~~~name~ yesno~~</td></tr>
<!--~}~--><!--~date {~-->
@@
-115,7
+115,7
@@
<table cellspacing="0" cellpadding="4" border="1" summary="">
<!--~listing_headers {~--><th>~caption~</th><!--~}~--><th> </th><!--~~rows {~~-->
<tr><!--~listing_fields {~-->
<table cellspacing="0" cellpadding="4" border="1" summary="">
<!--~listing_headers {~--><th>~caption~</th><!--~}~--><th> </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><!--~~}~~-->
<td><a href="~file_name~?~file_name~_delete_id=~~id~~" onclick="return confirm('Permanently delete?')">[delete this ~singular~]</a></td>
</tr><!--~~}~~-->