Add sha1 file directly to the template if we are showing the from in response to an ajax call

Signed-off-by: Suki <suki@missallsunday.com>