Are you sure you want to delete this listing?
+<%= t("views.listings.delete.subtitle") %>
- You cannot undo this action, perhaps you just want to - - <%= @listing.published ? "unpublish" : "edit" %> - - instead? + <%= t("views.listings.delete.description.text_html", action: link_to(@listing.published ? t("views.listings.delete.description.unpublish") : t("views.listings.delete.description.edit"), edit_listing_path(@listing), data: { no_instant: "" })) %>
<%= form_tag listing_path(@listing), method: :delete do %> - + - <%= @listing.published ? "Unpublish" : "Edit" %> + <%= @listing.published ? t("views.listings.delete.unpublish") : t("views.listings.delete.edit") %> <% end %>Edit Listing
+<%= t("views.listings.edit.heading") %>
400 characters max, 12 line break max, no images allowed, *markdown is encouraged*
+ <%= f.label "body_markdown", class: "crayons-field__label" %> + <%= f.text_area "body_markdown", maxlength: 400, placeholder: t("views.listings.form.body_markdown.placeholder"), class: "crayons-textfield" %> +<%= t("views.listings.form.body_markdown.description") %>
- If applicable for time sensitive events, deadlines, etc. + <%= t("views.listings.form.expiry.description") %>
32 characters max, plain text
+ <%= f.label "location", class: "crayons-field__label" %> + <%= f.text_field "location", maxlength: 32, placeholder: t("views.listings.form.location.placeholder"), class: "crayons-textfield m:max-w-50" %> +<%= t("views.listings.form.location.description") %>
This listing is not published.
+ <%= f.submit t("views.listings.edit.publish"), class: "crayons-btn mr-4" %> +<%= t("views.listings.edit.not_published.text_html", not: tag.strong(t("views.listings.edit.not_published.not"), class: "color-accent-danger")) %>
<% else %> - <%= f.submit "Unpublish listing", class: "crayons-btn crayons-btn--danger" %> + <%= f.submit t("views.listings.edit.unpublish"), class: "crayons-btn crayons-btn--danger" %> <% end %> <% end %>Bump your listing
-You can bump your listing for the same price as the original listing
+<%= t("views.listings.edit.bump.subtitle") %>
+<%= t("views.listings.edit.bump.description") %>
Last Published/Bumped: <%= time_ago_in_words @listing.bumped_at %> ago
+ <%= f.submit t("views.listings.edit.bump.button"), class: "crayons-btn crayons-btn--secondary mr-4" %> +<%= t("views.listings.edit.bump.last", date: time_ago_in_words(@listing.bumped_at, scope: :'datetime.distance_in_words_ago')) %>
- This listing is not published + <%= t("views.listings.edit.not_published.aside_html", not: tag.strong(t("views.listings.edit.not_published.not"), class: "color-accent-danger")) %>
- <%= f.submit "Publish listing", class: "crayons-btn w-100" %> + <%= f.submit t("views.listings.edit.publish"), class: "crayons-btn w-100" %> <% end %> <% end %><% if (@listing.natural_expiration_date) < Date.today %> - Expired <%= time_ago_in_words @listing.natural_expiration_date %> ago + <%= time_ago_in_words @listing.natural_expiration_date, scope: :"datetime.expired_ago" %> <% else %> - Expires in <%= time_ago_in_words @listing.natural_expiration_date %> + <%= time_ago_in_words @listing.natural_expiration_date, scope: :"datetime.expires_in" %> <% end %>
<% if @listing.bumped_at %>- Last Published/Bumped: <%= time_ago_in_words @listing.bumped_at %> ago + <%= t("views.listings.edit.bump.last", date: time_ago_in_words(@listing.bumped_at, scope: :"datetime.distance_in_words_ago")) %>
<% end %><%= t("core.listings") %>
+<%= t("views.listings.heading") %>
-Create a Community Listing
+<%= t("views.listings.new.heading") %>
<%= notice %>
-<%= link_to "Edit", edit_listing_path(@listing) %> | -<%= link_to "Back", listings_path %> +<%= link_to t("views.listings.to_edit"), edit_listing_path(@listing) %> | +<%= link_to t("views.listings.back"), listings_path %> diff --git a/app/views/social_previews/listing.html.erb b/app/views/social_previews/listing.html.erb index 4233aa43f493..12cb4d14c107 100644 --- a/app/views/social_previews/listing.html.erb +++ b/app/views/social_previews/listing.html.erb @@ -81,7 +81,7 @@ <%= @listing.social_preview_category %>