mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-04-02 01:59:11 +02:00
Add formatting help markup/translations
This commit is contained in:
parent
04f53f356d
commit
eccb51eab0
5 changed files with 16 additions and 0 deletions
app/views
config/locales
|
@ -30,6 +30,7 @@
|
||||||
= render 'navigation/guest'
|
= render 'navigation/guest'
|
||||||
= render 'shared/announcements'
|
= render 'shared/announcements'
|
||||||
= yield
|
= yield
|
||||||
|
= render "shared/formatting"
|
||||||
- if Rails.env.development?
|
- if Rails.env.development?
|
||||||
#debug
|
#debug
|
||||||
%hr
|
%hr
|
||||||
|
|
3
app/views/shared/_format_link.html.haml
Normal file
3
app/views/shared/_format_link.html.haml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
%a.text-muted.text-decoration-none.fs-7{ href: "#", data: { controller: "format-popup" }, tabindex: "0" }
|
||||||
|
%i.fab.fa-markdown
|
||||||
|
= t("voc.format_markdown")
|
4
app/views/shared/_formatting.html.haml
Normal file
4
app/views/shared/_formatting.html.haml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
#formatting-options.d-none{ aria: { hidden: true } }
|
||||||
|
= t(".body_html", app_name: APP_CONFIG["site_name"])
|
||||||
|
|
||||||
|
|
|
@ -550,6 +550,13 @@ en:
|
||||||
unsubscribe_all: "Disable on all devices"
|
unsubscribe_all: "Disable on all devices"
|
||||||
description: "Here you can set up or disable push notifications for new questions in your inbox."
|
description: "Here you can set up or disable push notifications for new questions in your inbox."
|
||||||
shared:
|
shared:
|
||||||
|
formatting:
|
||||||
|
body_html: |
|
||||||
|
<p>%{app_name} uses <b>Markdown</b> for formatting</p>
|
||||||
|
<p>Add two new lines for a new paragraph to start</p>
|
||||||
|
<p><code>*italic text*</code> for <i>italic text</i></p>
|
||||||
|
<p><code>**bold text**</code> for <b>bold text</b></p>
|
||||||
|
<p><code>[link](https://example.com)</code> for <a href="https://example.com">link</a></p>
|
||||||
links:
|
links:
|
||||||
about: "About"
|
about: "About"
|
||||||
source: "Source code"
|
source: "Source code"
|
||||||
|
|
|
@ -10,6 +10,7 @@ en:
|
||||||
delete: "Delete"
|
delete: "Delete"
|
||||||
edit: "Edit"
|
edit: "Edit"
|
||||||
follow: "Follow"
|
follow: "Follow"
|
||||||
|
format_markdown: "Styling with Markdown is supported"
|
||||||
load: "Load more"
|
load: "Load more"
|
||||||
login: "Sign in"
|
login: "Sign in"
|
||||||
logout: "Sign out"
|
logout: "Sign out"
|
||||||
|
|
Loading…
Reference in a new issue