fix the reordering links and add a shuffle options
authorTony Cook <tony@develop-help.com>
Sat, 2 Nov 2013 00:43:18 +0000 (11:43 +1100)
committerTony Cook <tony@develop-help.com>
Sat, 2 Nov 2013 00:43:18 +0000 (11:43 +1100)
site/templates/common/default.tmpl

index 446fc3c..c990270 100644 (file)
 Reorder child articles: 
   <:.set refresh = cfg.admin_url("admin", { "id":top.id }) -:>
   <a href="<:= cfg.admin_url("reorder", { "parentid":article.id, "sort":"title",
-   "refreshto":refresh }) :>"">by title</a> 
-| <a href="/cgi-bin/admin/reorder.pl?parentid=<:article id:>&sort=date&refreshto=/cgi-bin/admin/admin.pl?id=<:article id:>">by 
-  date</a> | <a href="/cgi-bin/admin/reorder.pl?parentid=<:article id:>&reverse=1&refreshto=/cgi-bin/admin/admin.pl?id=<:article id:>">reverse 
-  order</a></font></p>
+   "refreshto":refresh }) :>">by title</a>
+ | <a href="/cgi-bin/admin/reorder.pl?parentid=<:article id:>&amp;sort=date&amp;refreshto=/cgi-bin/admin/admin.pl?id=<:article id:>">by 
+  date</a> | <a href="/cgi-bin/admin/reorder.pl?parentid=<:article id:>&amp;reverse=1&amp;refreshto=/cgi-bin/admin/admin.pl?id=<:article id:>">reverse 
+  order</a>
+ | <a href="/cgi-bin/admin/reorder.pl?parentid=<:article id:>&amp;sort=shuffle&amp;refreshto=/cgi-bin/admin/admin.pl?id=<:article id:>">shuffle</a> 
+</font></p>
   <:.end if -:>
   <:.if dynamic -:>
     <:iterator begin dynchildren -:>