Author: dom Date: 2008-10-19 17:41:25 +0100 (Sun, 19 Oct 2008) New Revision: 1237
Modified: trunk/Changes trunk/templates/display_metadata.tt trunk/templates/node.tt Log: Move the node image outside the metadata div, to aid styling (fixes #222). Thanks peregrin.
Modified: trunk/Changes =================================================================== --- trunk/Changes 2008-10-19 15:24:04 UTC (rev 1236) +++ trunk/Changes 2008-10-19 16:41:25 UTC (rev 1237) @@ -14,6 +14,7 @@ Set content charset correctly in RDF (#260) Display geodata ellipsoid to user in edit from (#230) Add an admin navbar, to be displayed if the user requests (#261) + Move the node image outside the metadata div, to aid styling (#222)
0.63 16 August 2008 Major overhaul of RDF output.
Modified: trunk/templates/display_metadata.tt =================================================================== --- trunk/templates/display_metadata.tt 2008-10-19 15:24:04 UTC (rev 1236) +++ trunk/templates/display_metadata.tt 2008-10-19 16:41:25 UTC (rev 1237) @@ -4,26 +4,6 @@ OR hours_text OR map_link OR categories.size OR locales.size OR node_image %] <div id="metadata" class="vcard"> -[% IF node_image %] - <div id="node_image_box"> - [% IF node_image_url %]<a href="[% node_image_url %]">[% END %] - <img id="node_image" src="[% node_image %]" - alt="Picture of [% node_name %]" /> - [% IF node_image_url %]</a>[% END %] - [% IF node_image_copyright %] - <div id="node_image_copyright"> - [% IF node_image_licence %] - <a href="[% node_image_licence %]">© - [% node_image_copyright %]</a> - [% ELSE %] - © [% node_image_copyright %] - [% END %] - </div> - [% END %] - </div> -[% ELSE %] - <span id="node_no_image" /> -[% END %]
<!-- For the vcard --> <span class="fn" style="display:none">[% node_name %]</span>
Modified: trunk/templates/node.tt =================================================================== --- trunk/templates/node.tt 2008-10-19 15:24:04 UTC (rev 1236) +++ trunk/templates/node.tt 2008-10-19 16:41:25 UTC (rev 1237) @@ -27,6 +27,27 @@ </script> [% END %]
+[% IF node_image %] + <div id="node_image_box"> + [% IF node_image_url %]<a href="[% node_image_url %]">[% END %] + <img id="node_image" src="[% node_image %]" + alt="Picture of [% node_name %]" /> + [% IF node_image_url %]</a>[% END %] + [% IF node_image_copyright %] + <div id="node_image_copyright"> + [% IF node_image_licence %] + <a href="[% node_image_licence %]">© + [% node_image_copyright %]</a> + [% ELSE %] + © [% node_image_copyright %] + [% END %] + </div> + [% END %] + </div> +[% ELSE %] + <span id="node_no_image" /> +[% END %] + <div id="node_title"> [% IF current %] [% IF backlinks_in_title AND is_indexable_node %]