Changeset 1237


Ignore:
Timestamp:
Oct 19, 2008, 5:41:25 PM (13 years ago)
Author:
Dominic Hargreaves
Message:

Move the node image outside the metadata div, to aid styling
(fixes #222). Thanks peregrin.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Changes

    r1236 r1237  
    1515        Display geodata ellipsoid to user in edit from (#230)
    1616        Add an admin navbar, to be displayed if the user requests (#261)
     17        Move the node image outside the metadata div, to aid styling (#222)
    1718
    18190.63    16 August 2008
  • trunk/templates/display_metadata.tt

    r1095 r1237  
    55       node_image %]
    66<div id="metadata" class="vcard">
    7 [% IF node_image %]
    8   <div id="node_image_box">
    9     [% IF node_image_url %]<a href="[% node_image_url %]">[% END %]
    10     <img id="node_image" src="[% node_image %]"
    11          alt="Picture of [% node_name %]" />
    12     [% IF node_image_url %]</a>[% END %]
    13     [% IF node_image_copyright %]
    14       <div id="node_image_copyright">
    15         [% IF node_image_licence %]
    16           <a href="[% node_image_licence %]">&copy;
    17             [% node_image_copyright %]</a>
    18         [% ELSE %]
    19           &copy; [% node_image_copyright %]
    20         [% END %]
    21       </div>
    22     [% END %]
    23   </div>
    24 [% ELSE %]
    25   <span id="node_no_image" />
    26 [% END %]
    277
    288  <!-- For the vcard -->
  • trunk/templates/node.tt

    r1228 r1237  
    2626  //]]>
    2727  </script>
     28[% END %]
     29
     30[% IF node_image %]
     31  <div id="node_image_box">
     32    [% IF node_image_url %]<a href="[% node_image_url %]">[% END %]
     33    <img id="node_image" src="[% node_image %]"
     34         alt="Picture of [% node_name %]" />
     35    [% IF node_image_url %]</a>[% END %]
     36    [% IF node_image_copyright %]
     37      <div id="node_image_copyright">
     38        [% IF node_image_licence %]
     39          <a href="[% node_image_licence %]">&copy;
     40            [% node_image_copyright %]</a>
     41        [% ELSE %]
     42          &copy; [% node_image_copyright %]
     43        [% END %]
     44      </div>
     45    [% END %]
     46  </div>
     47[% ELSE %]
     48  <span id="node_no_image" />
    2849[% END %]
    2950
Note: See TracChangeset for help on using the changeset viewer.