fix(home): fix hlint and other minor bugs
This commit is contained in:
parent
d23e222fd0
commit
839251ede3
@ -596,7 +596,7 @@ MultiSinkException name@Text error@Text: In Abgabe #{name} ist ein Fehler aufget
|
|||||||
|
|
||||||
NoTableContent: Kein Tabelleninhalt
|
NoTableContent: Kein Tabelleninhalt
|
||||||
NoUpcomingSheetDeadlines: Keine anstehenden Übungsblätter
|
NoUpcomingSheetDeadlines: Keine anstehenden Übungsblätter
|
||||||
NoUpcomingExams difftime@Text: In den nächsten #{difftime} gibt es keine Prüfung oder ablaufende Prüfungsanmeldungen in Ihren Kursen
|
NoUpcomingExams difftime@Text: In den nächsten #{difftime} gibt es keine Prüfungen oder ablaufende Prüfungsanmeldungen in Ihren Kursen
|
||||||
|
|
||||||
AdminHeading: Administration
|
AdminHeading: Administration
|
||||||
AdminUserHeading: Benutzeradministration
|
AdminUserHeading: Benutzeradministration
|
||||||
|
|||||||
@ -7,7 +7,7 @@ import Handler.Utils
|
|||||||
|
|
||||||
|
|
||||||
getInfoAllocationR :: Handler Html
|
getInfoAllocationR :: Handler Html
|
||||||
getInfoAllocationR = do
|
getInfoAllocationR =
|
||||||
siteLayoutMsg MsgMenuAllocationInfo $ do
|
siteLayoutMsg MsgMenuAllocationInfo $ do
|
||||||
setTitleI MsgMenuAllocationInfo
|
setTitleI MsgMenuAllocationInfo
|
||||||
$(i18nWidgetFile "allocation-info")
|
$(i18nWidgetFile "allocation-info")
|
||||||
|
|||||||
@ -197,6 +197,7 @@ postProfileR = do
|
|||||||
, UserDateFormat =. stgDate
|
, UserDateFormat =. stgDate
|
||||||
, UserTimeFormat =. stgTime
|
, UserTimeFormat =. stgTime
|
||||||
, UserDownloadFiles =. stgDownloadFiles
|
, UserDownloadFiles =. stgDownloadFiles
|
||||||
|
, UserWarningDays =. stgWarningDays
|
||||||
, UserNotificationSettings =. stgNotificationSettings
|
, UserNotificationSettings =. stgNotificationSettings
|
||||||
]
|
]
|
||||||
when (stgMaxFavourties < userMaxFavourites) $ do
|
when (stgMaxFavourties < userMaxFavourites) $ do
|
||||||
|
|||||||
@ -567,7 +567,7 @@ intMinMaxField lower upper = intF{ fieldView=newView }
|
|||||||
newAttrs = [ (a,tshow v) | (a,Just v) <- [("min", lower),("max", upper)] ]
|
newAttrs = [ (a,tshow v) | (a,Just v) <- [("min", lower),("max", upper)] ]
|
||||||
|
|
||||||
daysField :: (Monad m, RenderMessage (HandlerSite m) FormMessage) => Field m NominalDiffTime
|
daysField :: (Monad m, RenderMessage (HandlerSite m) FormMessage) => Field m NominalDiffTime
|
||||||
daysField = convertField toDays fromDays fractionalField
|
daysField = convertField fromDays toDays fractionalField
|
||||||
where
|
where
|
||||||
toDays = (/ nominalDay)
|
toDays = (/ nominalDay)
|
||||||
fromDays = (* nominalDay)
|
fromDays = (* nominalDay)
|
||||||
|
|||||||
@ -98,6 +98,7 @@ instance Arbitrary User where
|
|||||||
userTimeFormat <- genDateTimeFormat SelFormatTime
|
userTimeFormat <- genDateTimeFormat SelFormatTime
|
||||||
|
|
||||||
userDownloadFiles <- arbitrary
|
userDownloadFiles <- arbitrary
|
||||||
|
userWarningDays <- arbitrary
|
||||||
userMailLanguages <- arbitrary
|
userMailLanguages <- arbitrary
|
||||||
userNotificationSettings <- arbitrary
|
userNotificationSettings <- arbitrary
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user