Skip to content

Commit 7fb2320

Browse files
committed
Clean Ej5
1 parent 1b5ec9b commit 7fb2320

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

web_ejer5/src/main/java/es/urjc/code/daw/tablonanuncios/TablonController.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ public String nuevoAnuncioForm(Model model) {
5959
public String nuevoAnuncio(Model model, @PathVariable int num) {
6060

6161
Anuncio anuncio = anuncios.get(num - 1);
62-
63-
System.out.println(anuncio);
6462

6563
model.addAttribute("anuncio", anuncio);
6664

web_ejer5/src/main/resources/templates/nuevo_anuncio.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
</head>
55
<body>
66

7-
<h2>Número de anuncios ({{num_anuncios}})</h2>
7+
<h2>Nuevo anuncio (Número de anuncios: {{num_anuncios}})</h2>
88

99
<form action="/anuncio/nuevo" method="post">
1010
<p>Nombre: </p>

web_ejer5/src/main/resources/templates/tablon.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ <h1>Bienvenido</h1>
66

77
<h1>Tablón Anuncios</h1>
88
{{#anuncios}}
9-
<a href="/anuncio/{{-index}}">{{nombre}} {{asunto}} {{-index}}</a><br>
9+
<a href="/anuncio/{{-index}}">{{nombre}} {{asunto}} </a><br>
1010
{{/anuncios}}
1111

1212
<br>

0 commit comments

Comments
 (0)