Rename WRITE A POST to CREATE POST (#13855)
* Rename WRITE A POST to CREATE POST * Revert schema line removal
This commit is contained in:
parent
802a557399
commit
e925d95f71
9 changed files with 13 additions and 13 deletions
|
|
@ -6,7 +6,7 @@ export const PageTitle = ({ organizations, organizationId, onToggle }) => {
|
|||
return (
|
||||
<div className="crayons-field__label flex items-center flex-1">
|
||||
<span className="hidden s:inline-block mr-2 whitespace-nowrap">
|
||||
Write a new post
|
||||
Create Post
|
||||
</span>
|
||||
{organizations && organizations.length > 0 && (
|
||||
<div>
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@
|
|||
</span>
|
||||
|
||||
<div class="crayons-field__label">
|
||||
<span class="hidden s:inline-block mr-2">Write a new post</span>
|
||||
<span class="hidden s:inline-block mr-2">Create Post</span>
|
||||
<% if organizations && organizations.size > 0 %>
|
||||
<select name="article[organization_id]" id="article_publish_under_org" class="crayons-select w-auto mt-0">
|
||||
<%= options_for_select({ "Personal" => "" }.merge(organizations.pluck(:name, :id).to_h), article.organization_id || "") %>
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
<% unless user_signed_in? %>
|
||||
<a href="<%= sign_up_path %>" class="crayons-link fw-bold inline-block p-2">Sign In/Up</a>
|
||||
<% else %>
|
||||
<a href="/new" class="crayons-link fw-bold inline-block p-2">Write a post</a>
|
||||
<a href="/new" class="crayons-link fw-bold inline-block p-2">Create Post</a>
|
||||
<% end %>
|
||||
|
||||
<div class="pt-4"><%= render partial: "layouts/social_media" %></div>
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
</li>
|
||||
<li class="px-1"><a href="<%= dashboard_path %>" class="crayons-link crayons-link--block">Dashboard</a></li>
|
||||
<li class="px-1"><a href="<%= mod_path %>" class="crayons-link crayons-link--block trusted-visible-block">Moderator Center</a></li>
|
||||
<li class="px-1"><a href="<%= new_path %>" class="crayons-link crayons-link--block">Write a Post</a></li>
|
||||
<li class="px-1"><a href="<%= new_path %>" class="crayons-link crayons-link--block">Create Post</a></li>
|
||||
<li class="px-1"><a href="<%= readinglist_path %>" class="crayons-link crayons-link--block">Reading list</a></li>
|
||||
<li class="border-0 border-b-1 border-solid border-base-20 px-1 pb-1">
|
||||
<a href="<%= user_settings_path %>" class="crayons-link crayons-link--block" id="second-last-nav-link">Settings</a>
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
<%= inline_svg_tag("search.svg", aria: true, class: "crayons-icon", title: "Search") %>
|
||||
</a>
|
||||
<% if user_signed_in? %>
|
||||
<a href="<%= new_path %>" class="crayons-btn hidden mr-2 whitespace-nowrap m:block ml-auto">Write a post</a>
|
||||
<a href="<%= new_path %>" class="crayons-btn hidden mr-2 whitespace-nowrap m:block ml-auto">Create Post</a>
|
||||
|
||||
<span class="trusted-visible-block">
|
||||
<a id="moderation-link" class="crayons-header__link crayons-btn crayons-btn--ghost crayons-btn--icon-rounded m:flex hidden" aria-label="Moderation" href="<%= mod_path %>">
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
<div class="widget-body">
|
||||
<%= sanitize @tag_model.rules_html %>
|
||||
<a class="crayons-btn crayons-btn--s" href="/new/<%= @tag %>">
|
||||
Write a post
|
||||
Create Post
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -306,14 +306,14 @@ seeder.create_if_none(Broadcast) do
|
|||
"Try changing <a href='settings/customization'>your font and theme</a> and find the best style for you!",
|
||||
start_discussion: "Sloan here! 👋 I noticed that you haven't " \
|
||||
"<a href='https://dev.to/t/discuss'>started a discussion</a> yet. Starting a discussion is easy to do; " \
|
||||
"just click on 'Write a Post' in the sidebar of the tag page to get started!",
|
||||
"just click on 'Create Post' in the sidebar of the tag page to get started!",
|
||||
ask_question: "Sloan here! 👋 I noticed that you haven't " \
|
||||
"<a href='https://dev.to/t/explainlikeimfive'>asked a question</a> yet. Asking a question is easy to do; " \
|
||||
"just click on 'Write a Post' in the sidebar of the tag page to get started!",
|
||||
"just click on 'Create Post' in the sidebar of the tag page to get started!",
|
||||
discuss_and_ask: "Sloan here! 👋 I noticed that you haven't " \
|
||||
"<a href='https://dev.to/t/explainlikeimfive'>asked a question</a> or " \
|
||||
"<a href='https://dev.to/t/discuss'>started a discussion</a> yet. It's easy to do both of these; " \
|
||||
"just click on 'Write a Post' in the sidebar of the tag page to get started!",
|
||||
"just click on 'Create Post' in the sidebar of the tag page to get started!",
|
||||
download_app: "Sloan here, with one last tip! 👋 Have you downloaded the DEV mobile app yet? " \
|
||||
"Consider <a href='https://dev.to/downloads'>downloading</a> it so you can access all " \
|
||||
"of your favorite DEV content on the go!"
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ FactoryBot.define do
|
|||
processed_html do
|
||||
"Sloan here! 👋 I noticed that you haven't " \
|
||||
"<a href='https://dev.to/t/discuss'>started a discussion</a> yet. " \
|
||||
"Starting a discussion is easy to do; just click on 'Write a Post' " \
|
||||
"Starting a discussion is easy to do; just click on 'Create Post' " \
|
||||
"in the sidebar of the tag page to get started!"
|
||||
end
|
||||
end
|
||||
|
|
@ -94,7 +94,7 @@ FactoryBot.define do
|
|||
processed_html do
|
||||
"Sloan here! 👋 I noticed that you haven't " \
|
||||
"<a href='https://dev.to/t/explainlikeimfive'>asked a question</a> yet. " \
|
||||
"Asking a question is easy to do; just click on 'Write a Post' in the sidebar of the tag page to get started!"
|
||||
"Asking a question is easy to do; just click on 'Create Post' in the sidebar of the tag page to get started!"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -105,7 +105,7 @@ FactoryBot.define do
|
|||
"Sloan here! 👋 I noticed that you haven't " \
|
||||
"<a href='https://dev.to/t/explainlikeimfive'>asked a question</a> or " \
|
||||
"<a href='https://dev.to/t/discuss'>started a discussion</a> yet. " \
|
||||
"It's easy to do both of these; just click on 'Write a Post' in the sidebar of the tag page to get started!"
|
||||
"It's easy to do both of these; just click on 'Create Post' in the sidebar of the tag page to get started!"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue