diff --git a/src/main/java/dao/CommentDao.java b/src/main/java/dao/CommentDao.java index ce7a573cef0aa5d26ee6b6be4016b5d332bafc05..0e00a2b755eec4f4667bb8116fa687f31a5e14b5 100644 --- a/src/main/java/dao/CommentDao.java +++ b/src/main/java/dao/CommentDao.java @@ -291,6 +291,7 @@ public class CommentDao extends Dao { author.setUsername(rs.getString("username")); author.setStatut((rs.getString("status_user"))); + comment.setAuthor(author); comments.add(comment); } } diff --git a/src/main/java/servlet/ReportedCommentsServlet.java b/src/main/java/servlet/ReportedCommentsServlet.java index b4a9989f5f8c3df7c18214ba3bbe006c74236287..df902f9c91dae77a9ecdf539b0ee5ea7a1de20bb 100644 --- a/src/main/java/servlet/ReportedCommentsServlet.java +++ b/src/main/java/servlet/ReportedCommentsServlet.java @@ -24,7 +24,7 @@ public class ReportedCommentsServlet extends HttpServlet { // Restriction s'en occupe déjà, mais vaut mieux deux fois qu'une HttpSession session = req.getSession(false); if (session == null || session.getAttribute("sessionUser") == null) { - resp.sendRedirect(req.getContextPath() + "login"); + resp.sendRedirect(req.getContextPath() + "/login"); return; } @@ -48,7 +48,7 @@ public class ReportedCommentsServlet extends HttpServlet { Comment comment = commentDao.find(id); if (comment == null) { - resp.sendRedirect(req.getContextPath() + "home"); // si le commentaire n'existe pas + resp.sendRedirect(req.getContextPath() + "/home"); // si le commentaire n'existe pas return; } @@ -57,10 +57,4 @@ public class ReportedCommentsServlet extends HttpServlet { resp.sendRedirect(req.getContextPath() + "/video?id=" + comment.getPost().getId()); } - - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - - } - } diff --git a/src/main/webapp/WEB-INF/admin.jsp b/src/main/webapp/WEB-INF/admin.jsp index 9281823452f13fe980654ce3451796ec6e9af82b..c5250f8385315162834ddbe19336c097ecf7a21f 100644 --- a/src/main/webapp/WEB-INF/admin.jsp +++ b/src/main/webapp/WEB-INF/admin.jsp @@ -80,7 +80,7 @@
" method="post"> - +
" method="post" @@ -142,7 +142,7 @@ " method="post"> - +
" method="post" onsubmit="return confirm('Supprimer ce compte ? Son e-mail ne pourra plus être réutilisé.');"> diff --git a/src/main/webapp/assets/css/admin-style.css b/src/main/webapp/assets/css/admin-style.css index 8419aa19ada471d076935d9a353870c222a2fd01..0ac919dc87b0aa732db674c35a631f303e6d830f 100644 --- a/src/main/webapp/assets/css/admin-style.css +++ b/src/main/webapp/assets/css/admin-style.css @@ -41,9 +41,9 @@ nav > img { height: 65px; object-fit: contain; flex-shrink: 0; - height: 190px; + height: 110px; position: relative; - top: 51px; + top: 20px; transform: rotate(20deg); filter: drop-shadow(3px 4px 2px rgba(250, 138, 41, 0.25)) @@ -486,11 +486,12 @@ footer p { align-items: center; justify-content: center; font-family: 'Permanent Marker', cursive; - font-size: 15px; + font-size: 16px; padding: 6px 16px; - border-radius: 30px; + border-radius: 6px; border: 2px solid transparent; color: black; + font-weight: bold; text-decoration: none; cursor: pointer; transition: all 0.3s ease; @@ -504,26 +505,26 @@ footer p { .smallBlue { background-color: #167ac6; border-color: #62c5ff; - box-shadow: 0 0 6px #62c5ff, 0 0 14px #3498db; + box-shadow: 0 0 6px #62c5ff, 0 0 8px #3498db; } .smallPink { background-color: #d9297d; border-color: #ff9ed0; - box-shadow: 0 0 6px #ff9ed0, 0 0 14px #e84393; + box-shadow: 0 0 6px #ff9ed0, 0 0 8px #e84393; } .smallYellow { - background-color: #ffd500; + background-color: #C6D81D; border-color: #fff176; - box-shadow: 0 0 6px #ffeb3b, 0 0 14px #ffd500; + box-shadow: 0 0 6px #ffeb3b, 0 0 8px #C6D81D; } -.smallLime { +/*.smallLime { background-color: #DBFA19; border-color: #efff85; - box-shadow: 0 0 6px #efff85, 0 0 14px #DBFA19; -} + box-shadow: 0 0 6px #efff85, 0 0 8px #DBFA19; +}*/ /* Le statut d'un utilisateur : user, admin, desactive ou supprime */ .badge { diff --git a/src/main/webapp/assets/css/style.css b/src/main/webapp/assets/css/style.css index 6ba68c0dd80442537741379d81f54465bf8c2516..2205a6bf9cb3a5e5905c6aee12cb0d3c7eaecb1f 100644 --- a/src/main/webapp/assets/css/style.css +++ b/src/main/webapp/assets/css/style.css @@ -345,7 +345,7 @@ body { } a, button, input[type="submit"], input[type="button"] { - cursor: url('../img/cursor.png'), pointer; + cursor: pointer; } /*------------------- JSP REGISTER / LOGIN ------------ */