views method and inspection.html template for inspection detail page