Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Markdown link to description helper #112

Merged
merged 1 commit into from
Dec 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/views/events/_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@
= form.hidden_field :address_id, id: 'existing_address_id'
= render "addresses/form", parent_form: form
.form-group
= form.text_area :description, class: 'form-control', style: "height: 10em;", floating: true
= form.text_area :description, class: 'form-control', style: "height: 10em;", floating: true, help: t('event.form.description_uses_markdown_html', link: link_to(t('event.form.description_uses_markdown_name'), 'https://www.markdownguide.org/basic-syntax/'))
.actions
= form.primary
2 changes: 2 additions & 0 deletions config/locales/models/event/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ en:
Be sure to explain how to send you evidence of a negative test in your event description.
header_photo_help: Photos are scaled and cropped to full-screen width (1900px by 500px).
header_photo_crop_prompt: Click and drag the header image above to change how your header image will be cropped.
description_uses_markdown_html: You can format the event description with %{link} to make text bold, add links, or organize things into bullet points.
description_uses_markdown_name: Markdown
labels:
covid_testing: Require COVID testing
secret: Make this event secret
Expand Down
2 changes: 2 additions & 0 deletions config/locales/models/event/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ es:
prueba. Asegúrese de explicar cómo enviarle evidencia de una prueba negativa en la descripción del evento.
header_photo_help: Fotos se escalan y recortan al ancho de pantalla completo (1900px por 500px).
header_photo_crop_prompt: Haga clic y arrastre la imagen de arriba para cambiar cómo se recortará su foto.
description_uses_markdown_html: Se puede formatear la descripción del evento con %{link} para poner el texto en negrita, agregar enlaces, o organizar cosas en viñetas.
description_uses_markdown_name: Markdown
labels:
secret: Haz que este evento sea secreto
rsvp_list:
Expand Down
Loading