Changeset 843


Ignore:
Timestamp:
Aug 24, 2006, 5:08:03 PM (15 years ago)
Author:
nick
Message:

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

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/README.CSS

    r839 r843  
    144144
    145145div#version
    146     Used it: node.tt
     146    Used in: node.tt
    147147    Purpose: Text describing the version of the node being displayed
     148
     149div#node_image_box
     150    Used in: display_metadata.tt
     151    Purpose: Hold the image for a node.
     152    Note: If there is no node image, span#node_no_image will exist instead
     153span#node_no_image
     154    Used in: display_metadata.tt
     155    Purpose: To indicate that there is no image for the node
     156img#node_image
     157    Used in: display_metadata.tt
     158    Purpose: To display the image for a node
    148159
    149160input#address
     
    257268    Purpose: An box to enter the categories of the node
    258269
    259 textarea.content
    260270textarea#content_textarea
    261271    Used in: edit_conflict.tt, edit_form.tt
  • trunk/templates/display_metadata.tt

    r811 r843  
    33
    44<div id="metadata" class="vcard">
     5[% IF node_image %]
     6        <div id="node_image_box">
     7                <img id="node_image" src="[% node_image %]" alt="Picture of [% node_name %]" />
     8        </div>
     9[% ELSE %]
     10        <span id="node_no_image" />
     11[% END %]
     12
    513  <!--- For the vcard --->
    614  <span class="fn" style="display:none">[% node_name %]</span>
Note: See TracChangeset for help on using the changeset viewer.