Let me help:
<%= render partial: 'shared/content_with_login', locals: { micropost: micropost, user: user } %>