fix(home): fix hlint and other minor bugs

This commit is contained in:
Steffen Jost 2019-08-22 18:07:22 +02:00
parent d23e222fd0
commit 839251ede3
5 changed files with 5 additions and 3 deletions

View File

@ -596,7 +596,7 @@ MultiSinkException name@Text error@Text: In Abgabe #{name} ist ein Fehler aufget
NoTableContent: Kein Tabelleninhalt
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
AdminUserHeading: Benutzeradministration

View File

@ -7,7 +7,7 @@ import Handler.Utils
getInfoAllocationR :: Handler Html
getInfoAllocationR = do
getInfoAllocationR =
siteLayoutMsg MsgMenuAllocationInfo $ do
setTitleI MsgMenuAllocationInfo
$(i18nWidgetFile "allocation-info")

View File

@ -197,6 +197,7 @@ postProfileR = do
, UserDateFormat =. stgDate
, UserTimeFormat =. stgTime
, UserDownloadFiles =. stgDownloadFiles
, UserWarningDays =. stgWarningDays
, UserNotificationSettings =. stgNotificationSettings
]
when (stgMaxFavourties < userMaxFavourites) $ do

View File

@ -567,7 +567,7 @@ intMinMaxField lower upper = intF{ fieldView=newView }
newAttrs = [ (a,tshow v) | (a,Just v) <- [("min", lower),("max", upper)] ]
daysField :: (Monad m, RenderMessage (HandlerSite m) FormMessage) => Field m NominalDiffTime
daysField = convertField toDays fromDays fractionalField
daysField = convertField fromDays toDays fractionalField
where
toDays = (/ nominalDay)
fromDays = (* nominalDay)

View File

@ -98,6 +98,7 @@ instance Arbitrary User where
userTimeFormat <- genDateTimeFormat SelFormatTime
userDownloadFiles <- arbitrary
userWarningDays <- arbitrary
userMailLanguages <- arbitrary
userNotificationSettings <- arbitrary