Index: openacs-4/packages/new-portal/www/template-place-element.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/new-portal/www/template-place-element.adp,v diff -u -r1.8 -r1.9 --- openacs-4/packages/new-portal/www/template-place-element.adp 25 Jan 2002 20:04:45 -0000 1.8 +++ openacs-4/packages/new-portal/www/template-place-element.adp 28 Jan 2002 17:48:39 -0000 1.9 @@ -20,17 +20,19 @@ </if> </if> - <if @region@ eq 1> - <a href="@target_stub@-2?portal_id=@portal_id@&op=move&element_id=@element_multi.element_id@&direction=right®ion=@region@&return_url=@return_url@"><img border=0 src="@dir@/arrow-right.gif" alt="move right"></a> - </if> + <if @num_regions@ gt 1> + <if @region@ eq 1> + <a href="@target_stub@-2?portal_id=@portal_id@&op=move&element_id=@element_multi.element_id@&direction=right®ion=@region@&return_url=@return_url@"><img border=0 src="@dir@/arrow-right.gif" alt="move right"></a> + </if> - <if @region@ gt 1 and @region@ lt @num_regions@> - <a href="@target_stub@-2?portal_id=@portal_id@&op=move&element_id=@element_multi.element_id@&direction=left®ion=@region@&return_url=@return_url@"><img border=0 src="@dir@/arrow-left.gif" alt="move left"></a> - <a href="@target_stub@-2?portal_id=@portal_id@&op=move&element_id=@element_multi.element_id@&direction=right®ion=@region@&return_url=@return_url@"><img border=0 src="@dir@/arrow-right.gif" alt="move right"></a> + <if @region@ gt 1 and @region@ lt @num_regions@> + <a href="@target_stub@-2?portal_id=@portal_id@&op=move&element_id=@element_multi.element_id@&direction=left®ion=@region@&return_url=@return_url@"><img border=0 src="@dir@/arrow-left.gif" alt="move left"></a> + <a href="@target_stub@-2?portal_id=@portal_id@&op=move&element_id=@element_multi.element_id@&direction=right®ion=@region@&return_url=@return_url@"><img border=0 src="@dir@/arrow-right.gif" alt="move right"></a> + </if> + <if @region@ eq @num_regions@><a href="@target_stub@-2?portal_id=@portal_id@&op=move&element_id=@element_multi.element_id@&direction=left®ion=@region@&return_url=@return_url@"><img border=0 src="@dir@/arrow-left.gif" alt="move left"></a> + </if> </if> - <if @region@ eq @num_regions@><a href="@target_stub@-2?portal_id=@portal_id@&op=move&element_id=@element_multi.element_id@&direction=left®ion=@region@&return_url=@return_url@"><img border=0 src="@dir@/arrow-left.gif" alt="move left"></a> </if> - <p align=left> Shown? Yes [<a href="@target_stub@-2?portal_id=@portal_id@&op=hide&element_id=@element_multi.element_id@&return_url=@return_url@">hide this element</a>]