Author: nick Date: 2006-08-24 17:08:03 +0100 (Thu, 24 Aug 2006) New Revision: 843
Modified: trunk/README.CSS trunk/templates/display_metadata.tt Log: Display the node image if there is one, or an empty span if not. (there can't be a node image if node images are disabled). closes #135
Modified: trunk/README.CSS =================================================================== --- trunk/README.CSS 2006-08-24 15:51:17 UTC (rev 842) +++ trunk/README.CSS 2006-08-24 16:08:03 UTC (rev 843) @@ -143,9 +143,20 @@ Purpose: The search form at the bottom of the page
div#version - Used it: node.tt + Used in: node.tt Purpose: Text describing the version of the node being displayed
+div#node_image_box + Used in: display_metadata.tt + Purpose: Hold the image for a node. + Note: If there is no node image, span#node_no_image will exist instead +span#node_no_image + Used in: display_metadata.tt + Purpose: To indicate that there is no image for the node +img#node_image + Used in: display_metadata.tt + Purpose: To display the image for a node + input#address Used in: edit_conflict.tt, edit_form.tt Purpose: An input field for the address of the node @@ -256,7 +267,6 @@ Used in: edit_conflict.tt, edit_form.tt Purpose: An box to enter the categories of the node
-textarea.content textarea#content_textarea Used in: edit_conflict.tt, edit_form.tt Purpose: A box to enter the main conent of the node
Modified: trunk/templates/display_metadata.tt =================================================================== --- trunk/templates/display_metadata.tt 2006-08-24 15:51:17 UTC (rev 842) +++ trunk/templates/display_metadata.tt 2006-08-24 16:08:03 UTC (rev 843) @@ -2,6 +2,14 @@ <!-- METADATA STARTS -->
<div id="metadata" class="vcard"> +[% IF node_image %] + <div id="node_image_box"> + <img id="node_image" src="[% node_image %]" alt="Picture of [% node_name %]" /> + </div> +[% ELSE %] + <span id="node_no_image" /> +[% END %] + <!--- For the vcard ---> <span class="fn" style="display:none">[% node_name %]</span> [% IF phone OR fax OR address OR postcode OR formatted_website_text
openguides-commits@lists.openguides.org