template for resource previews