UI: Bugfix for "Active only"
UI: Bugfix for "Active only"

The template conditionals were inside the <tr> tags instead of outside
it so lots of empty rows were being created.

jamesog/scan,jamesog/scan,jamesog/scan