X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=templates%2Ffactory%2Flist;h=843f9a4d50b603bfced8da3c999ab0cc763eb22b;hb=63830bac51f24c669f09544b97ea14480eb53c14;hp=8cd0209fc9531fe457ca1f2e6b959c0d290202e5;hpb=77fb5cc34c9a87077dc65548f0d890b366e78c61;p=maypole.git diff --git a/templates/factory/list b/templates/factory/list index 8cd0209..843f9a4 100644 --- a/templates/factory/list +++ b/templates/factory/list @@ -6,22 +6,23 @@

Listing of all [% classmetadata.plural %]

[% END %] [% INCLUDE navbar %] - -
- +[% INCLUDE search_form %] +
+
[% FOR col = classmetadata.columns.list; NEXT IF col == "id"; ""; END %] + [% SET count = 0; FOR item = objects;
"; SET additional = "?order=" _ col; - SET additional = additional _ "&page=" _ pager.current_page + SET additional = additional _ "&page=" _ pager.current_page IF pager; - SET additional = additional _ "&o2=desc" + SET additional = additional _ "&o2=desc" IF col == request.query.order and request.query.o2 != "desc"; link(classmetadata.table, "list", additional, classmetadata.colnames.$col); "Actions