hedgedoc/public/views
Philip Molares 8e6aab0145 Templates: Remove lang and add translation parameter
Since the interface is not always in english, we mostly removed the lang attribute from all html tags. Since the error messages in error.ejs are not translated, but always in english, there the global lang="en" should be kept.
Also in the slide and editor template the div, which contains the user generated text, has the attribute translate="no" now, to avoid unwanted translations.
Since on the publish view (pretty.ejs) only the user generated content is shown, we set the lang to the language defined in yaml (or 'en') as a default, but that was also moved to the corresponding markdown div instead of html.

Fixes #881
See also #437

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-16 10:48:44 +01:00
..
hedgedoc Switch to ejs 3 compliant imports 2021-02-09 20:27:39 +01:00
includes apply review suggestions 2020-11-15 20:12:39 +01:00
index Switch to ejs 3 compliant imports 2021-02-09 20:27:39 +01:00
shared apply review suggestions 2020-11-15 20:12:39 +01:00
error.ejs Switch to ejs 3 compliant imports 2021-02-09 20:27:39 +01:00
hedgedoc.ejs Templates: Remove lang and add translation parameter 2021-03-16 10:48:44 +01:00
html.hbs Templates: Remove lang and add translation parameter 2021-03-16 10:48:44 +01:00
index.ejs Templates: Remove lang and add translation parameter 2021-03-16 10:48:44 +01:00
pretty.ejs Templates: Remove lang and add translation parameter 2021-03-16 10:48:44 +01:00
slide.ejs Templates: Remove lang and add translation parameter 2021-03-16 10:48:44 +01:00