Also since this blocked is share, it should be in separate file and included here and in view_report.html and everywhere else needed.