0.8dev: Refactored template.


git-svn-id: https://svn.apache.org/repos/asf/bloodhound/trunk@1578221 13f79535-47bb-0310-9956-ffa450edef68
0.8dev: Hide heading if there are no items.


git-svn-id: https://svn.apache.org/repos/asf/bloodhound/trunk@1578222 13f79535-47bb-0310-9956-ffa450edef68