Commit 55024ba0 authored by Rodrigo Diez's avatar Rodrigo Diez

Pagina de consultas añadida

parent 5b58a998
Pipeline #38 canceled with stages
This diff is collapsed.
......@@ -990,7 +990,7 @@ {
.chat .panel-body {
overflow-y: scroll;
height: 300px; }
height: 450px; }
.chat-body small {
margin-left: 5px; }
......@@ -36,5 +36,10 @@ router.get('/', async(req, res) =>{
router.get('/consultas', async(req, res) =>{
const consultas = await Consulta.find().sort({ fecha: 'desc'});
res.render('inicio/consultas', {consultas});
module.exports = router;
\ No newline at end of file
<nav class="navbar navbar-custom navbar-fixed-top" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#sidebar-collapse"><span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span></button>
<a class="navbar-brand" href="#"><span>DIEZROFER</span>DNS</a>
<ul class="nav navbar-top-links navbar-right">
</div><!-- /.container-fluid -->
<div class="col-sm-12 col-lg-12 main">
<div class="row">
<ol class="breadcrumb">
<li class="active">Consultas</li>
<div class="row">
<div class="col-md-12">
<div class="panel panel-default chat">
<div class="panel-heading">
<div class="panel-body">
{{#each consultas}}
<li class="left clearfix">
<div class="chat-body clearfix">
<div class="header"><strong class="primary-font">{{cliente}}</strong> <small class="text-muted">{{fecha}}</small></div>
<p>Ha solicitado {{pagina}} cuya direccion ip es {{direccion}}</p>
<div class="col-sm-12">
<p class="back-link">Pagina ofrecida por <a href="">DiezRoFer</a></p>
</div> <!--/.main-->
\ No newline at end of file
<div class="row">
<div class="col-xs-10 col-xs-offset-1 col-sm-8 col-sm-offset-2 col-md-4 col-md-offset-4">
<div class="col-xs-10 col-xs-offset-1 col-sm-8 col-sm-offset-2 col-md-4 col-md-offset-4 align-content-center text-center">
<div class="login-panel panel panel-default">
<div class="panel-heading">Realizar consulta</div>
<div class="panel-body">
<div class="panel-body ">
<form role="form" action="/" method="get">
<div class="form-group">
......@@ -10,6 +10,7 @@
<button class="btn btn-primary align-content-center" type="submit">Resolver direccion</button>
<a href="/consultas" class="btn btn-primary align-content-center" >Ver consultas</a>
......@@ -6,6 +6,7 @@
<title>DNS DiezRoFer</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/styles.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment