Fix a missing endif tag for the Show SSH Public Key template.

When this change was backported to 1.7, an endif tag was left out. This
adds it back, and fixes indentation so that future mistakes won't be so
easily made.