Grand ménage des fichiers obsolètes/inutiles et réorganisation des dossiers

This commit is contained in:
Pierrick C
2017-10-01 09:20:19 +02:00
parent 2091c459be
commit ce15bceb58
65 changed files with 0 additions and 723 deletions

View File

@ -0,0 +1,18 @@
{% extends "bootstrap/base.html" %}
{% block html_attribs %} lang="fr" {% endblock %}
{% block styles %}
{{super()}}
<link rel="stylesheet" href="{{url_for('static', filename ='css/Base.css', _external = True)}}" />
{% endblock %}
{% block navbar %}
{{nav.top.render()}}
{% endblock %}
{% block body %}
{{super()}}
<div class="footer">-- by arofarn --</div>
{% endblock %}

View File

@ -0,0 +1,9 @@
{% extends "base.tpl" %}
{% block title %}Camétéo{% endblock %}
{% block content %}
<div class="container">
</div>
{% endblock %}

View File

@ -0,0 +1,46 @@
{% extends "base.tpl" %}
{% block title %}Camétéo{% endblock %}
{% block styles %}
{{super()}}
{{ css_ressources }}
{{ js_ressources }}
{% endblock %}
{% block content %}
{% from "bootstrap/pagination.html" import render_pagination %}
<div class="container">
{{ plot_div|safe }}
<div id="graph"></div>
{{ render_pagination(dat) }}
<div class="table-responsive">
<table class="table table-hover">
<thead class="thead-inverse">
<tr>
<th>Date/Heure</th>
<th>Type</th>
<th>Valeur</th>
<th>Capteur</th>
</tr>
</thead>
<tbody>
{% for item in dat.items -%}
{% if item.value is number %}
<tr>
{% else %}
<tr class="warning">
{% endif %}
<td>{{ item.valdate }}</td>
<td><a href="/type_id={{ item.type_id }}">{{ item.type_id }}</a></td>
<td>{{ item.value }} {{ item.unit }}</td>
<td><a href="/sensor_id={{ item.sensor_id }}">{{ item.sensor_id }}</a></td>
</tr>
{%- endfor %}
</tbody>
</table>
{{ render_pagination(dat) }}
</div>
</div>
{{ plot_script|safe }}
{% endblock %}

View File

@ -0,0 +1,37 @@
{% extends "base.tpl" %}
{% block title %}Camétéo{% endblock %}
{% block content %}
{% from "bootstrap/pagination.html" import render_pagination %}
<div class="container">
<div id="graph"></div>
{{ render_pagination(dat) }}
<div class="table-responsive">
<table class="table table-hover">
<thead class="thead-inverse">
<tr>
<th>Date/Heure</th>
<th>Type</th>
<th>Valeur</th>
<th>Capteur</th>
</tr>
</thead>
<tbody>
{% for item in dat.items -%}
{% if item.value is number %}
<tr>
{% else %}
<tr class="warning">
{% endif %}
<td>{{ item.valdate }}</td>
<td><a href="/type_id={{ item.type_id }}">{{ item.type_id }}</a></td>
<td>{{ item.value }} {{ item.unit }}</td>
<td><a href="/sensor_id={{ item.sensor_id }}">{{ item.sensor_id }}</a></td>
</tr>
{%- endfor %}
</tbody>
</table>
{{ render_pagination(dat) }}
</div>
</div>
{% endblock %}

View File

@ -0,0 +1,14 @@
{% extends "base.tpl" %}
{% block title %}Camétéo{% endblock %}
{% block content %}
<div class="container">
<div class="jumbotron">
<h1>Bienvenue !</h1>
<p>Camétéo est un projet de prise de mesures et de photos pour documenter
des activités d'extérieurs (randonnées, jardin...).</p>
<p><a class="btn btn-primary btn-lg" href="/all_data" role="button">Voir les données...</a></p>
</div>
</div>
{% endblock %}

View File

@ -0,0 +1,14 @@
{% extends "base.tpl" %}
{% block title %}Camétéo - Photos{% endblock %}
{% block content %}
<div class="container">
<div class="jumbotron">
<p><a href={{ url_for('picture', num=numero+1) }}>Photo précédente</a>{% if numero > 0 %} | <a href={{ url_for('picture', num=numero-1) }}>Photo suivante</a>{% endif %}</p>
<p><img src="{{ picture_path }}" width="1020" alt="Dernière photo prise" ></p>
<p><a href="{{ picture_path }}"><span class="glyphicon glyphicon-download"></span>Télécharger la photo</a><p>
</div>
</div>
{% endblock %}