Skip to content
Snippets Groups Projects
Commit 14741628 authored by Fnac's avatar Fnac
Browse files

Mensjae de nuevos mensajes

parent 130521f8
No related branches found
No related tags found
No related merge requests found
...@@ -48,10 +48,13 @@ and open the template in the editor. ...@@ -48,10 +48,13 @@ and open the template in the editor.
<% <%
ArrayList<Mensaje> mensajes= (ArrayList<Mensaje>)request.getAttribute("mensajes"); ArrayList<Mensaje> mensajes= (ArrayList<Mensaje>)request.getAttribute("mensajes");
for(int i=0;i<mensajes.size();i++){ for(int i=mensajes.size()-1; i >= 0;i--){
%> %>
<div class="mensajeBuzon"> <div class="mensajeBuzon">
<p class="usuario"><%= mensajes.get(i).getAutor() %><p>
<p class="usuario"><%= mensajes.get(i).getAutor() %> <%if(mensajes.get(i).getLeido() == 0){%>
<span class="leido">Nuevo</span>
<%}%><p>
<p class="asunto"><%= mensajes.get(i).getAsunto() %></p> <p class="asunto"><%= mensajes.get(i).getAsunto() %></p>
<p class="fecha"><%= mensajes.get(i).getFecha() %></p> <p class="fecha"><%= mensajes.get(i).getFecha() %></p>
<p class="verMensaje"><button type="submit" onclick="window.location.href='mensajeSV?idMensaje=<%=mensajes.get(i).getIdMensaje()%>&tipo=<%=mensajes.get(i).getTipo()%>'">Ver</button></p> <p class="verMensaje"><button type="submit" onclick="window.location.href='mensajeSV?idMensaje=<%=mensajes.get(i).getIdMensaje()%>&tipo=<%=mensajes.get(i).getTipo()%>'">Ver</button></p>
......
...@@ -63,7 +63,7 @@ and open the template in the editor. ...@@ -63,7 +63,7 @@ and open the template in the editor.
ArrayList<Nook> misNooks = (ArrayList<Nook>) request.getAttribute("misNooks"); ArrayList<Nook> misNooks = (ArrayList<Nook>) request.getAttribute("misNooks");
ArrayList<String> misNooksCategorias = (ArrayList<String>) request.getAttribute("misNooksCategorias"); ArrayList<String> misNooksCategorias = (ArrayList<String>) request.getAttribute("misNooksCategorias");
ArrayList<Integer> valoraciones = (ArrayList<Integer>) request.getAttribute("valoraciones"); ArrayList<Integer> valoraciones = (ArrayList<Integer>) request.getAttribute("valoraciones");
for(int i = misNooks.size() - 1; i > 0; i--){ for(int i = misNooks.size() - 1; i >= 0; i--){
%> %>
<div class="nook_n"> <div class="nook_n">
<div class="nook_n_img"> <div class="nook_n_img">
......
...@@ -120,7 +120,7 @@ and open the template in the editor. ...@@ -120,7 +120,7 @@ and open the template in the editor.
<% <%
ArrayList<Comentario> comentarios = (ArrayList<Comentario>) request.getAttribute("comentarios"); ArrayList<Comentario> comentarios = (ArrayList<Comentario>) request.getAttribute("comentarios");
ArrayList<Integer> cValoraciones = (ArrayList<Integer>) request.getAttribute("cValoraciones"); ArrayList<Integer> cValoraciones = (ArrayList<Integer>) request.getAttribute("cValoraciones");
for(int i = comentarios.size() - 1; i > 0; i--){ for(int i = comentarios.size() - 1; i >= 0; i--){
%> %>
<li> <li>
<div class="comentarioTexto" method="post" action="/valorarComentarioSV?"> <div class="comentarioTexto" method="post" action="/valorarComentarioSV?">
......
...@@ -786,3 +786,17 @@ margin:auto; ...@@ -786,3 +786,17 @@ margin:auto;
.confirm .message { .confirm .message {
text-align: left; text-align: left;
} }
.checkLeido{
padding-top: 1rem;
padding-left: 90%;
margin-right:0;
width: 20rem;
}
.leido{
color:#FFD700;
font-size: 1rem;
-webkit-text-stroke-width: 0.5px;
-webkit-text-stroke-color: black;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment