diff --git a/src/main/java/ru/redrise/marinesco/security/ManageUsersController.java b/src/main/java/ru/redrise/marinesco/security/ManageUsersController.java index 4ce1e07..a109bb1 100644 --- a/src/main/java/ru/redrise/marinesco/security/ManageUsersController.java +++ b/src/main/java/ru/redrise/marinesco/security/ManageUsersController.java @@ -23,7 +23,7 @@ import ru.redrise.marinesco.data.UserRepository; @Slf4j @Controller -@RequestMapping("/manage_users") +@RequestMapping("/settings/manage_users") @PreAuthorize("hasRole('ADMIN')") public class ManageUsersController { @@ -83,14 +83,14 @@ public class ManageUsersController { log.error(id, e); } - return "redirect:/manage_users"; + return "redirect:/settings/manage_users"; } @PostMapping("/update") public String update(UserGenerified userGenerified) { User user = userRepository.findById(userGenerified.getId()).get(); if (user == null) - return "redirect:/manage_users"; + return "redirect:/settings/manage_users"; user.setAuthorities(userGenerified.getAthorities()); user.setDisplayname(userGenerified.getDisplayName()); @@ -99,7 +99,7 @@ public class ManageUsersController { user.setPassword(passwordEncoder.encode(userGenerified.getPassword())); userRepository.save(user); - return "redirect:/manage_users"; + return "redirect:/settings/manage_users"; } @PostMapping @@ -117,6 +117,6 @@ public class ManageUsersController { log.info("Added user {} {} {}", user.getId(), user.getUsername(), user.getDisplayname(), user.getAuthorities().get(0)); // Reloads page therefore new records appears - return "redirect:/manage_users"; + return "redirect:/settings/manage_users"; } } diff --git a/src/main/java/ru/redrise/marinesco/security/UserSettingsController.java b/src/main/java/ru/redrise/marinesco/security/UserSettingsController.java index b0065f4..f946069 100644 --- a/src/main/java/ru/redrise/marinesco/security/UserSettingsController.java +++ b/src/main/java/ru/redrise/marinesco/security/UserSettingsController.java @@ -75,6 +75,6 @@ public class UserSettingsController { log.info("{} {}", userSettingsForm.getDisplayname(), userSettingsForm.getNewPassword()); userRepo.save(user); - return "user_settings"; + return "redirect:/profile/settings"; } } diff --git a/src/main/resources/static/styles/styles.css b/src/main/resources/static/styles/styles.css index 8615e39..b2a5a1b 100644 --- a/src/main/resources/static/styles/styles.css +++ b/src/main/resources/static/styles/styles.css @@ -109,13 +109,22 @@ header { float: right; padding: 0%; } +#header_menu_block{ + list-style-type: none; + list-style-image: none; + height: 100%; + margin-right: 0; + right: 0; + float: left; + padding: 0%; +} .ul_right_block { margin: 0 !important; padding: 0 !important; } -.li_right_block { +.li_header_block { margin-left: 5px; margin-right: 5px; height: 100%; @@ -135,6 +144,22 @@ header { color: #74bfbd; } +.header_logo_link:link { + color: #74bfbd; +} +.header_logo_link:visited{ + color: #74bfbd; +} +.header_logo_link:hover { + color: #74bfbd; +} + +.header_entry_link:link { + color: #74bfbd; +} +.header_entry_link:visited { + color: #74bfbd; +} .header_entry_link:hover { color: #b6a795; } @@ -156,6 +181,25 @@ a.entry { font-size: 1.5em; } + +.button-header { + margin: 1em 0; + font-family: sans-serif; + font-style: normal; + font-weight: normal; + text-align: center; + font-variant: small-caps !important; + background-color: #74bfbd !important; + border: none; + border-radius: 2px; + padding: 4px 15px 4px 15px; + color: #4a3c3c; +} + +.button-header:hover { + background-color: #c2dac0 !important; +} + hr { border: 0; border-bottom: 1px dashed; diff --git a/src/main/resources/templates/author.html b/src/main/resources/templates/author.html index 66f2b92..3232867 100644 --- a/src/main/resources/templates/author.html +++ b/src/main/resources/templates/author.html @@ -10,7 +10,7 @@