Remove the show_attribute partial and inline its functionality