Browse Source

commit

master
Cristobal Bernal Mayordomo 1 year ago
parent
commit
7784a078bf
8 changed files with 21 additions and 75 deletions
  1. +7
    -1
      pom.xml
  2. +2
    -7
      src/main/java/com/cristobalbernal/foro/controlador/Controlador.java
  3. +1
    -1
      src/main/java/com/cristobalbernal/foro/seguridad/ConfigSeguridad.java
  4. +4
    -0
      src/main/resources/static/css/style.css
  5. BIN
      src/main/resources/static/image/1587660272621-1-2-bm-.jpg
  6. +1
    -57
      src/main/resources/templates/Respuestas/post-detall.html
  7. +3
    -5
      src/main/resources/templates/menu/menu.html
  8. +3
    -4
      src/main/resources/templates/miperfil/miperfil.html

+ 7
- 1
pom.xml View File

@ -51,7 +51,13 @@
<artifactId>jquery</artifactId>
<version>3.6.1</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.webjars/webjars-locator -->
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-validation -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
<!-- https://mvnrepository.com/artifact/org.webjars/webjars-locator -->
<dependency>
<groupId>org.webjars</groupId>
<artifactId>webjars-locator</artifactId>


+ 2
- 7
src/main/java/com/cristobalbernal/foro/controlador/Controlador.java View File

@ -24,15 +24,10 @@ public class Controlador {
model.addAttribute("listaRespuestas",servicioRespuestas.findAll());
return "index";
}
@GetMapping({"/springsecurity/{usuario}","/springsecurity"})
public String springsecurity(@PathVariable(name="usuario", required = false) String usuario,
Model model) throws MalformedURLException {
model.addAttribute("titulo","Panel de control security");
model.addAttribute("usuario",usuario);
@GetMapping("/login")
public String login(){
return "login/login";
}
@GetMapping("/registrar")
public String registrar(){
return "Registrar/registrar";


+ 1
- 1
src/main/java/com/cristobalbernal/foro/seguridad/ConfigSeguridad.java View File

@ -22,7 +22,7 @@ public class ConfigSeguridad {
.anyRequest().authenticated()
)
.formLogin((form) -> form
.loginPage("/springsecurity")
.loginPage("/login")
.permitAll()
)
.logout(LogoutConfigurer::permitAll);


+ 4
- 0
src/main/resources/static/css/style.css View File

@ -2361,4 +2361,8 @@ button:active {
}
a:hover{
color: #dd1919;
}
.cerrarSesion{
margin-top: 2%;
text-align: center;
}

BIN
src/main/resources/static/image/1587660272621-1-2-bm-.jpg View File

Before After
Width: 380  |  Height: 270  |  Size: 36 KiB

+ 1
- 57
src/main/resources/templates/Respuestas/post-detall.html View File

@ -48,7 +48,6 @@
<li>
<div class="comment-main-level">
<!-- Avatar -->
<div class="comment-avatar"><img src="image/images.png" alt=""></div>
<!-- Contenedor del Comentario -->
<div class="comment-box">
<div class="comment-head">
@ -60,7 +59,6 @@
<ul class="comments-list reply-list">
<li>
<div class="comment-avatar"><img src="image/images.png" alt=""></div>
<div class="comment-box">
<div class="comment-head">
<h6 class="comment-name"><a href="#">Lorena Rojero</a></h6> <span><i class="fa fa-clock-o" aria-hidden="true"> January 15 , 2014 at 10:00 pm</i></span> <i class="fa fa-reply"></i> <i class="fa fa-heart"></i> </div>
@ -68,7 +66,6 @@
</div>
</li>
<li>
<div class="comment-avatar"><img src="image/images.png" alt=""></div>
<div class="comment-box">
<div class="comment-head">
<h6 class="comment-name by-author"><a href="#">Agustin Ortiz</a></h6> <span><i class="fa fa-clock-o" aria-hidden="true"> January 15 , 2014 at 10:00 pm</i></span> <i class="fa fa-reply"></i> <i class="fa fa-heart"></i> </div>
@ -76,7 +73,7 @@
</div>
</li>
<li>
<div class="comment-avatar"><img src="image/images.png" alt=""></div>
<div class="comment-box">
<div class="comment-head">
<h6 class="comment-name"><a href="#">Lorena Rojero</a></h6> <span><i class="fa fa-clock-o" aria-hidden="true"> January 15 , 2014 at 10:00 pm</i></span> <i class="fa fa-reply"></i> <i class="fa fa-heart"></i> </div>
@ -88,7 +85,6 @@
<li>
<div class="comment-main-level">
<!-- Avatar -->
<div class="comment-avatar"><img src="image/images.png" alt=""></div>
<!-- Contenedor del Comentario -->
<div class="comment-box">
<div class="comment-head">
@ -206,58 +202,6 @@
<input type="checkbox" checked="checked"> Remember Me</label> <a href="#" class="resbutton3892">Register</a> </div>
</div>
<!-- highest part-->
<div class="highest-part302">
<h4>Highest Points</h4>
<div class="pints-wrapper">
<div class="left-user3898">
<a href="#"><img src="image/images.png" alt="Image"></a>
<div class="imag-overlay39"> <a href="#"><i class="fa fa-plus" aria-hidden="true"></i></a> </div>
</div> <span class="points-details938">
<a href="#"><h5>Ahmed Hasan</h5></a>
<a href="#" class="designetion439">Pundit</a>
<p>206 points</p>
</span> </div>
<hr>
<div class="pints-wrapper">
<div class="left-user3898">
<a href="#"><img src="image/images.png" alt="Image"></a>
<div class="imag-overlay39"> <a href="#"><i class="fa fa-plus" aria-hidden="true"></i></a> </div>
</div> <span class="points-details938">
<a href="#"><h5>Ahmed Hasan</h5></a>
<a href="#" class="designetion439">Pundit</a>
<p>206 points</p>
</span> </div>
<hr>
<div class="pints-wrapper">
<div class="left-user3898">
<a href="#"><img src="image/images.png" alt="Image"></a>
<div class="imag-overlay39"> <a href="#"><i class="fa fa-plus" aria-hidden="true"></i></a> </div>
</div> <span class="points-details938">
<a href="#"><h5>Ahmed Hasan</h5></a>
<a href="#" class="designetion439">Pundit</a>
<p>206 points</p>
</span> </div>
<hr>
<div class="pints-wrapper">
<div class="left-user3898">
<a href="#"><img src="image/images.png" alt="Image"></a>
<div class="imag-overlay39"> <a href="#"><i class="fa fa-plus" aria-hidden="true"></i></a> </div>
</div> <span class="points-details938">
<a href="#"><h5>Ahmed Hasan</h5></a>
<a href="#" class="designetion439">Pundit</a>
<p>206 points</p>
</span> </div>
<hr>
<div class="pints-wrapper">
<div class="left-user3898">
<a href="#"><img src="image/images.png" alt="Image"></a>
<div class="imag-overlay39"> <a href="#"><i class="fa fa-plus" aria-hidden="true"></i></a> </div>
</div> <span class="points-details938">
<a href="#"><h5>Ahmed Hasan</h5></a>
<a href="#" class="designetion439">Pundit</a>
<p>206 points</p>
</span> </div>
</div>
<!-- end of Highest points -->
<!-- start tags part-->
<div class="tags-part2398">


+ 3
- 5
src/main/resources/templates/menu/menu.html View File

@ -1,5 +1,5 @@
<nav th:fragment="mimenu" xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<div class="top-menu-bottom932">
<nav th:fragment="mimenu">
<div class="top-menu-bottom932">
<nav class="navbar navbar-default">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
@ -13,9 +13,7 @@
<ul class="nav navbar-nav navbar-right">
<li><a href="/home">Home</a></li>
<li><a href="/crearPregunta">Ask Question</a></li>
<li><a href="/springsecurity">Acceder</a>
<span sec:authentication="name">Sin autenticar</span>
</li>
<li><a href="/miperfil">Acceder</a></li>
</ul>
</div>
<!-- /.navbar-collapse -->


+ 3
- 4
src/main/resources/templates/miperfil/miperfil.html View File

@ -3,7 +3,7 @@
<link rel="stylesheet" th:href="@{/css/style.css}">
<link rel="stylesheet" th:href="@{/css/font-awesome.min.css}">
<div class="miperfil">
<img class="avatarPerfil" src="">
<img class="avatarPerfil" src="/image/1587660272621-1-2-bm-.jpg">
<h1 class="user-name">Felipe Minguet Moncho</h1>
</div>
<ul class="socials">
@ -11,7 +11,6 @@
<a class="colorCorreo" href="mailto:[email protected]">[email protected]</a>
</li>
</ul>
<form th:action="@{/logout}" method="post">
<input class="" type="submit" value="Cerrar Sesion"/>
<form th:action="@{/logout}" method="post" class="cerrarSesion">
<input type="submit" value="Cerrar Sesion"/>
</form>

Loading…
Cancel
Save