From d0358b4a500c64c6a25558cf8f5179f0c385cd45 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 12 May 2020 14:22:42 +0200 Subject: [PATCH] fix(html-field): remove warning about html-input --- src/Handler/Material.hs | 1 - templates/i18n/html-input/de-de-formal.hamlet | 9 --------- templates/i18n/html-input/en-eu.hamlet | 10 ---------- 3 files changed, 20 deletions(-) delete mode 100644 templates/i18n/html-input/de-de-formal.hamlet delete mode 100644 templates/i18n/html-input/en-eu.hamlet diff --git a/src/Handler/Material.hs b/src/Handler/Material.hs index 968e9f06b..c84996842 100644 --- a/src/Handler/Material.hs +++ b/src/Handler/Material.hs @@ -270,7 +270,6 @@ postMaterialNewR tid ssh csh = do siteLayoutMsg headingLong $ do setTitleI headingShort editWidget - $(i18nWidgetFile "html-input") handleMaterialEdit :: TermId -> SchoolId -> CourseShorthand -> CourseId -> Maybe MaterialForm -> (Material -> DB (Maybe MaterialId)) -> Handler Widget handleMaterialEdit tid ssh csh cid template dbMaterial = do diff --git a/templates/i18n/html-input/de-de-formal.hamlet b/templates/i18n/html-input/de-de-formal.hamlet deleted file mode 100644 index d54ab9790..000000000 --- a/templates/i18n/html-input/de-de-formal.hamlet +++ /dev/null @@ -1,9 +0,0 @@ -$newline never -

Hinweis: Leerzeilen werden entfernt! -

- Das Eingabefeld akzeptiert derzeit nur Html.
- Zeilumbrüche spielen dementsprechend keine Rolle, können aber mit # - <br> - eingefügt werden. -

- Für die Zukunft ist Markdown Unterstützung inklusive Editor geplant. diff --git a/templates/i18n/html-input/en-eu.hamlet b/templates/i18n/html-input/en-eu.hamlet deleted file mode 100644 index 6c45f2c59..000000000 --- a/templates/i18n/html-input/en-eu.hamlet +++ /dev/null @@ -1,10 +0,0 @@ -$newline never -

Attention: line breaks will be removed! -

- The text area currently accepts only Html.
- - Thus any linebreaks will be ignored but can be added using # - <br> - . -

- We plan to support Markdown in the future.