fixing backend stuff
This commit is contained in:
parent
282dd1478f
commit
d6a2ffc52c
4 changed files with 4 additions and 1 deletions
|
@ -72,6 +72,7 @@ postAdminMediumSettingsR mediumId = do
|
|||
[ MediumTitle =. mediumTitle temp
|
||||
, MediumDescription =. mediumDescription temp
|
||||
, MediumTags =. mediumTags temp
|
||||
, MediumLicence =. mediumLicence temp
|
||||
]
|
||||
setMessage "Medium settings changed successfully"
|
||||
redirect AdminR
|
||||
|
|
|
@ -116,6 +116,7 @@ postAdminProfileSettingsR ownerId = do
|
|||
, UserSlug =. userSlug temp
|
||||
, UserEmail =. userEmail temp
|
||||
, UserAdmin =. userAdmin temp
|
||||
, UserDefaultLicence =. userDefaultLicence temp
|
||||
]
|
||||
setMessage "User data updated successfully"
|
||||
redirect AdminR
|
||||
|
|
|
@ -47,6 +47,7 @@ postProfileSettingsR userId = do
|
|||
UserName =. userName temp
|
||||
, UserSlug =. userSlug temp
|
||||
, UserEmail =. userEmail temp
|
||||
, UserDefaultLicence =. (userDefaultLicence temp)
|
||||
]
|
||||
setMessage "Profile settings changed successfully"
|
||||
redirect $ UserR $ userName user
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
Licence:
|
||||
<p>
|
||||
$maybe thing <- link
|
||||
<a href=#{thing}>#{lic}
|
||||
<a href=#{thing} target="_blank">#{lic}
|
||||
$nothing
|
||||
#{lic}
|
||||
<p>
|
||||
|
|
Loading…
Reference in a new issue