<% title "New Post" %>

<% if user_signed_in? %>
  <%= render "shared/webcomponents_loader_script" %>
  <%= javascript_pack_tag "clipboardCopy", defer: true %>
  <%= javascript_pack_tag "articleForm", defer: true %>
  <%= render "articles/v2_form", article: @article, organizations: @organizations, version: @version %>
<% else %>
  <% @new_article_not_logged_in = true %>
  <%= render "devise/registrations/registration_form" %>
<% end %>
