De duplicate the join notification code

I noticed this code on two pages, slightly different.
This pulls it out to a partial to avoid duplication of code.