swap arrows to match make_arrows
authorAdrian Oldham <adriann@visualthought.com.au>
Mon, 11 Nov 2013 10:07:19 +0000 (21:07 +1100)
committerTony Cook <tony@develop-help.com>
Mon, 24 Feb 2014 22:23:58 +0000 (09:23 +1100)
site/templates/preload.tmpl

index b73f3978264680c143ad85dcd5c416acfda26ac2..603a0affcd0b165f6bae5a5d5a5bf51525961dcd 100644 (file)
@@ -371,18 +371,18 @@ parameters:
   <:.set height = cfg.entry("arrows", "image_height", 13) -:>
   <:.set extras = 'width="' _ width _ '" height="' _ height _ '"' -:>
   <:.set blankim = '<img src="' _ (dist_image_uri _ "/trans_pixel.gif").escape("html") _ '" alt="" ' _ extras _ ' />' -:>
-  <:.if loop.prev -:>
-    <:.set upimg = cfg.entry("arrows", "upimg", dist_image_uri _ "/admin/move_up.gif") -:>
-  <a href="<:= cfg.admin_url("move", { "stepparent":parent.id, "d":"swap", "id":loop.current.id, "other":loop.prev.id, "r":top.admin }) :>"><img src="<:= upimg :>" <:= extras :> /></a>
-  <:.else -:>
-  <:= blankim |raw-:>
-  <:.end if -:>
   <:.if loop.next -:>
     <:.set downimg = cfg.entry("arrows", "downimg", dist_image_uri _ "/admin/move_down.gif") -:>
   <a href="<:= cfg.admin_url("move", { "stepparent":parent.id, "d":"swap", "id":loop.current.id, "other":loop.next.id, "r":top.admin }) :>"><img src="<:= downimg :>" <:= extras :> /></a>
   <:.else -:>
     <:= blankim |raw-:>
   <:.end if -:>
+  <:.if loop.prev -:>
+    <:.set upimg = cfg.entry("arrows", "upimg", dist_image_uri _ "/admin/move_up.gif") -:>
+  <a href="<:= cfg.admin_url("move", { "stepparent":parent.id, "d":"swap", "id":loop.current.id, "other":loop.prev.id, "r":top.admin }) :>"><img src="<:= upimg :>" <:= extras :> /></a>
+  <:.else -:>
+  <:= blankim |raw-:>
+  <:.end if -:>
 <:.end if -:>
 
 <:.end define -:>