<% if(!tipo.includes('especial') && infoUser[0].t_networking==2 ){ %>
<%
///perfilTipo
for(let i = 0; i < info_Programa.length; i++) {
let id_agenda = info_Programa[i].id
let espacios = parseInt(info_Programa[i].espacios)-1
let tipoActividad = parseInt(info_Programa[i].tipo)
if(tipoActividad==1){tipoActividad = 'Demo'}
else if(tipoActividad==2){tipoActividad = 'Master Panel'}
else if(tipoActividad==3){tipoActividad = 'World Café'}
else if(tipoActividad==4){tipoActividad = 'Collab sessions'}
else if(tipoActividad==6){tipoActividad = 'Master class'}
else if(tipoActividad==7){tipoActividad = 'Taller'}
else if(tipoActividad==9){tipoActividad = 'Experiencias'}
else{tipoActividad = ''}
//Verificamos si esta solo
if(info_Programa[i].otro_identificador=='V'){
let fecha1 = info_Programa[i].horario
let fecha2 = info_Programa[(i-1)].horario
let fecha3 =info_Programa[(i+1)].horario
//entonces todos los que tienen esa hora los ponemos en el mismo cuadro
//Verificamos si es el primero
if(fecha1 !== fecha2 ){
%>
<%= info_Programa[i].horario.slice(0, 5) %> <%= info_Programa[i].hora_fin.slice(0, 5) %>
<%= tipoActividad %>
<%= info_Programa[i].nombre %>
<% if(info_Programa[i].lugar!= null && info_Programa[i].lugar!= '' ){ %>
<%= info_Programa[i].lugar %>
<% } %>
<% if(info_Programa[i].tipo==8 && !tipo.includes('especial') && infoUser[0].t_networking==2){ %>
<% } %>
<%
let existe = mis_Reservas.some(obj => obj.id_actividad == info_Programa[i].id);
if (existe) {
%>
¡Tengo un lugar!
<%
} else {
%>
<% if(espacios>1 && typeof espacios=='number'){ %>
Regístrate
<% } %>
<%
}
%>
<%
}else if(fecha1 === fecha2 ){
%>
<%= info_Programa[i].nombre %>
<% if(info_Programa[i].lugar!= null && info_Programa[i].lugar!= '' ){ %>
<%= info_Programa[i].lugar %>
<% } %>
<% if(info_Programa[i].tipo==8 && !tipo.includes('especial') && infoUser[0].t_networking==2){ %>
<% } %>
<%
let existe = mis_Reservas.some(obj => obj.id_actividad == info_Programa[i].id);
if (existe) {
%>
¡Tengo un lugar!
<%
} else {
%>
<% if(espacios>1 && typeof espacios=='number'){ %>
Regístrate
<% } %>
<%
}
%>
<%
}
%>
<% }else{ %>
<%= info_Programa[i].horario.slice(0, 5) %> <%= info_Programa[i].hora_fin.slice(0, 5) %>
<%= tipoActividad %>
<%= info_Programa[i].nombre %>
<% if(info_Programa[i].lugar!= null && info_Programa[i].lugar!= '' ){ %>
<%= info_Programa[i].lugar %>
<% } %>
<% if(info_Programa[i].tipo==8 && !tipo.includes('especial') && infoUser[0].t_networking==2){ %>
<% } %>
<%
let existe = mis_Reservas.some(obj => obj.id_actividad == info_Programa[i].id);
if (existe) {
%>
¡Tengo un lugar!
<%
} else {
%>
<% if(espacios>1 && typeof espacios=='number'){ %>
Regístrate
<% } %>
<%
}
%>
<%
}
}
%>