Move <HR> inside of template conditional

Otherwise, if `settings.ENABLE_INSTRUCTOR_ANALYTICS` is set to `False`,
two horizontal rules are rendered consecutively.

The `<HR>` has also been indented to align with surrounding tags.