chore(tutorial): change tutorial template separator to single underscore
This commit is contained in:
parent
fa36cb4de1
commit
db65816ef0
@ -42,7 +42,7 @@ defaultTutorialType :: TutorialType
|
|||||||
defaultTutorialType = "Schulung"
|
defaultTutorialType = "Schulung"
|
||||||
|
|
||||||
tutorialTypeSeparator :: TutorialType
|
tutorialTypeSeparator :: TutorialType
|
||||||
tutorialTypeSeparator = "___"
|
tutorialTypeSeparator = "_"
|
||||||
|
|
||||||
tutorialTemplateNames :: Maybe TutorialType -> [TutorialType]
|
tutorialTemplateNames :: Maybe TutorialType -> [TutorialType]
|
||||||
tutorialTemplateNames Nothing = ["Vorlage", "Template"]
|
tutorialTemplateNames Nothing = ["Vorlage", "Template"]
|
||||||
@ -52,7 +52,7 @@ tutorialDefaultName :: Maybe TutorialType -> Day -> TutorialName
|
|||||||
tutorialDefaultName Nothing = CI.mk . tshow -- Don't use user date display setting, so that tutorial default names conform to all users
|
tutorialDefaultName Nothing = CI.mk . tshow -- Don't use user date display setting, so that tutorial default names conform to all users
|
||||||
tutorialDefaultName (Just ttyp) =
|
tutorialDefaultName (Just ttyp) =
|
||||||
let prefix = CI.mk $ snd $ Text.breakOnEnd (CI.original tutorialTypeSeparator) $ CI.original ttyp
|
let prefix = CI.mk $ snd $ Text.breakOnEnd (CI.original tutorialTypeSeparator) $ CI.original ttyp
|
||||||
in ((prefix <> "_") <>) . tutorialDefaultName Nothing
|
in ((prefix <> tutorialTypeSeparator) <>) . tutorialDefaultName Nothing
|
||||||
|
|
||||||
data ButtonCourseRegisterMode = BtnCourseRegisterConfirm | BtnCourseRegisterAbort
|
data ButtonCourseRegisterMode = BtnCourseRegisterConfirm | BtnCourseRegisterAbort
|
||||||
deriving (Eq, Ord, Enum, Bounded, Read, Show, Generic)
|
deriving (Eq, Ord, Enum, Bounded, Read, Show, Generic)
|
||||||
|
|||||||
Reference in New Issue
Block a user