[% PROCESS macros %] [% INCLUDE header %] [% INCLUDE title %] [% IF search %]
"; SET additional = "?order=" _ col; SET additional = additional _ "&page=" _ pager.current_page IF pager; SET additional = additional _ "&o2=desc" IF col == request.params.order and request.params.o2 != "desc"; SET action = "list"; FOR name = classmetadata.columns.list; IF request.query.$name; SET additional = additional _ "&" _ name _ "=" _ request.params.$name; SET action = "search"; END; END; USE model_obj = Class request.model_class; IF model_obj.find_column(col); link(classmetadata.table, action, additional, classmetadata.colnames.$col); IF col == request.params.order; IF request.params.o2 != "desc"; "↓"; ELSE; "↑"; END; END; ELSE; classmetadata.colnames.$col || col FILTER ucfirst; END; " | "; END %]Actions |
---|---|