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 @@
-
+
diff --git a/src/main/resources/templates/book.html b/src/main/resources/templates/book.html index 55bc7c1..8a22ac3 100644 --- a/src/main/resources/templates/book.html +++ b/src/main/resources/templates/book.html @@ -10,7 +10,7 @@
-
+
diff --git a/src/main/resources/templates/fragments/header.html b/src/main/resources/templates/fragments/header.html index d49bc6b..b43c7bc 100644 --- a/src/main/resources/templates/fragments/header.html +++ b/src/main/resources/templates/fragments/header.html @@ -1,45 +1,90 @@ - - -
-
-
-
- - Marinesco - -
- -
- Marinesco + + + +
+
+
+
+ Marinesco +
+
-
+ + +
- -
- -
+
+ +
+ + - \ No newline at end of file diff --git a/src/main/resources/templates/genres_settings.html b/src/main/resources/templates/genres_settings.html index 66eed90..f5659b3 100644 --- a/src/main/resources/templates/genres_settings.html +++ b/src/main/resources/templates/genres_settings.html @@ -10,7 +10,7 @@
-
+
diff --git a/src/main/resources/templates/login.html b/src/main/resources/templates/login.html index e2b2347..d35bb61 100644 --- a/src/main/resources/templates/login.html +++ b/src/main/resources/templates/login.html @@ -9,7 +9,7 @@ -
+
diff --git a/src/main/resources/templates/manage_users.html b/src/main/resources/templates/manage_users.html index 18e7f79..1e49b7e 100644 --- a/src/main/resources/templates/manage_users.html +++ b/src/main/resources/templates/manage_users.html @@ -10,12 +10,12 @@
-
+

- + @@ -37,14 +37,14 @@
- Delete + Delete


Add user -
+ pew Error diff --git a/src/main/resources/templates/root.html b/src/main/resources/templates/root.html index cf942db..9409913 100644 --- a/src/main/resources/templates/root.html +++ b/src/main/resources/templates/root.html @@ -10,21 +10,13 @@
diff --git a/src/main/resources/templates/search.html b/src/main/resources/templates/search.html index dc812ad..50cf2c6 100644 --- a/src/main/resources/templates/search.html +++ b/src/main/resources/templates/search.html @@ -10,12 +10,8 @@
-
+
-
- - -

Titles

diff --git a/src/main/resources/templates/settings.html b/src/main/resources/templates/settings.html index 5840ce2..4a45323 100644 --- a/src/main/resources/templates/settings.html +++ b/src/main/resources/templates/settings.html @@ -10,14 +10,16 @@
-
+
-

- +
+
+ Manage users +

diff --git a/src/main/resources/templates/user_settings.html b/src/main/resources/templates/user_settings.html index 698e941..cf7bd9c 100644 --- a/src/main/resources/templates/user_settings.html +++ b/src/main/resources/templates/user_settings.html @@ -10,7 +10,7 @@

-
+

welcome