From e925d95f71557885f16b2bbbdc07b9cd38f7a82b Mon Sep 17 00:00:00 2001 From: Lisa Sy Date: Tue, 25 May 2021 10:30:30 -0700 Subject: [PATCH] Rename WRITE A POST to CREATE POST (#13855) * Rename WRITE A POST to CREATE POST * Revert schema line removal --- app/javascript/article-form/components/PageTitle.jsx | 2 +- app/javascript/article-form/components/Title.jsx | 2 +- app/views/articles/_v2_form.html.erb | 2 +- app/views/layouts/_footer.html.erb | 2 +- app/views/layouts/_nav_menu.html.erb | 2 +- app/views/layouts/_top_bar.html.erb | 2 +- app/views/stories/tagged_articles/_sidebar.html.erb | 2 +- db/seeds.rb | 6 +++--- spec/factories/broadcasts.rb | 6 +++--- 9 files changed, 13 insertions(+), 13 deletions(-) diff --git a/app/javascript/article-form/components/PageTitle.jsx b/app/javascript/article-form/components/PageTitle.jsx index 3cb35fe62..0a307603b 100644 --- a/app/javascript/article-form/components/PageTitle.jsx +++ b/app/javascript/article-form/components/PageTitle.jsx @@ -6,7 +6,7 @@ export const PageTitle = ({ organizations, organizationId, onToggle }) => { return (
- Write a new post + Create Post {organizations && organizations.length > 0 && (
diff --git a/app/javascript/article-form/components/Title.jsx b/app/javascript/article-form/components/Title.jsx index 2cece3cc1..36583f3e1 100644 --- a/app/javascript/article-form/components/Title.jsx +++ b/app/javascript/article-form/components/Title.jsx @@ -4,7 +4,7 @@ import PropTypes from 'prop-types'; // We use this hook for the title field to automatically grow the height of the textarea. // It helps keep the entire layout the way it is without having unnecessary scrolling and white spaces. // Keep in mind this is what happens only here - in the Preact component. -// I'm mentioning this because the entire "Write a post" view is a preact component +// I'm mentioning this because the entire "Create Post" view is a preact component // BUT it is also a classic .html.erb view which is being loaded BEFORE this component // to give a feeling of blazing fast page load. And we do NOT use this magic autoresizing // functionality on .html.erb view because there's no point of it. diff --git a/app/views/articles/_v2_form.html.erb b/app/views/articles/_v2_form.html.erb index 5f17fb31c..2937f149a 100644 --- a/app/views/articles/_v2_form.html.erb +++ b/app/views/articles/_v2_form.html.erb @@ -49,7 +49,7 @@
- + <% if organizations && organizations.size > 0 %>