Minor engine template fix.

It has no sense to show "sorting links" if there are only one resource.