Commit 64a671cd3e5fd35232be370dd262b76a0edec1c1
1 parent
2a5f0e9b
Exists in
master
and in
2 other branches
Add an About page.
Showing
4 changed files
with
85 additions
and
3 deletions
Show diff stats
CHANGELOG.md
1 | 1 | ## Nicolas |
2 | 2 | |
3 | 3 | - [ ] rajouter MAVEN, New Horizons, Cassini, Galileo, ExoMars comme spacecraft cible |
4 | -- [ ] prévoir la possibilité à l'utilisateur d'afficher le temps en Day Of Year | |
5 | 4 | - [ ] ajouter un bouton ALERT qui permet d'ouvrir une nouvelle page de formulaire : |
6 | 5 | |
7 | 6 | * target (= planète, spacecraft, comet) |
... | ... | @@ -36,12 +35,17 @@ et prendre aussi |
36 | 35 | - [ ] Rework the images of Rosetta and Juno |
37 | 36 | - [ ] Optimize data aggregation (numpy vectorization?) |
38 | 37 | - [ ] IE compat, if you can (I can't) |
38 | +- [ ] Make date format in time series configurable to DayOfYear | |
39 | 39 | |
40 | 40 | |
41 | 41 | ## 1.6 |
42 | 42 | |
43 | 43 | - [x] Re-enable Earth |
44 | 44 | - [x] Layer : CME Catalogs |
45 | +- [x] Add an About page | |
46 | +- [x] Rewrite everything using ES6 instead of Livescript | |
47 | +- [x] Force domain re-sizing of time series to be sequential | |
48 | +- [x] Fix broken, confusing ticks on time series | |
45 | 49 | |
46 | 50 | |
47 | 51 | ## 1.5 | ... | ... |
web/run.py
... | ... | @@ -980,6 +980,15 @@ def home(): |
980 | 980 | }) |
981 | 981 | |
982 | 982 | |
983 | +@app.route("/about.html") | |
984 | +def about(): | |
985 | + increment_hit_counter() | |
986 | + return render_view('about.html.jinja2', { | |
987 | + 'authors_emails': [a['mail'] for a in config['authors']], | |
988 | + 'visits': get_hit_counter(), | |
989 | + }) | |
990 | + | |
991 | + | |
983 | 992 | @app.route("/<target>_<inp>_<started_at>_<stopped_at>.csv") |
984 | 993 | def download_target_csv(target, inp, started_at, stopped_at): |
985 | 994 | """ | ... | ... |
... | ... | @@ -0,0 +1,69 @@ |
1 | +{% extends 'layout.html.jinja2' %} | |
2 | +{% set menu_section = 'about' %} | |
3 | +{% block title %}About{% endblock %} | |
4 | + | |
5 | +{#############################################################################} | |
6 | + | |
7 | +{% block content %} | |
8 | + | |
9 | +<div class="mdl-layout mdl-js-layout"> | |
10 | + | |
11 | + <main id="" class="mdl-layout__content"> | |
12 | + | |
13 | + <div class="mdl-grid"> | |
14 | + <a href="/index.html" class="mdl-button mdl-button--raised mdl-button--primary"> | |
15 | + ↵ Back | |
16 | + </a> | |
17 | + </div> | |
18 | + | |
19 | + <div class="mdl-grid"> | |
20 | + <div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-tablet mdl-cell--4-col-phone"> | |
21 | + <h2>Bug Reports</h2> | |
22 | + <p> | |
23 | + Please send bug reports | |
24 | +{# There are no safe ways to embed multiple recipients in a mailto #} | |
25 | +{# https://web.archive.org/web/20151116223616/http://www.sightspecific.com/~mosh/WWW_FAQ/multrec.html #} | |
26 | + <a href="mailto:{{ authors_emails | shuffle | join(',') }}">via email</a> or, | |
27 | + <em>(if you can)</em>, | |
28 | + use <a href="https://gitlab.irap.omp.eu/CDPP/SPACEWEATHERONLINE/issues">our issue tracker</a>. | |
29 | + </p> | |
30 | + </div> | |
31 | + <div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-tablet mdl-cell--4-col-phone"> | |
32 | + <h2>Credits</h2> | |
33 | + <p> | |
34 | + The <a href="http://www.europlanet-2020-ri.eu/">Europlanet 2020 Research Infrastructure</a> project has received funding | |
35 | + from the <a href="https://ec.europa.eu/programmes/horizon2020/">European Union's Horizon 2020</a> research and innovation programme | |
36 | + under grant agreement N° 654208. | |
37 | + </p> | |
38 | + <p> | |
39 | + If you like the pixel art planets, you can <a href="https://www.redbubble.com/people/spacefruitdox/portfolio" title="We're not affiliated with the author of these images in any way, but they're nice and this is a way of saying thanks.">buy goodies</a> of them. | |
40 | + </p> | |
41 | + </div> | |
42 | + <div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-tablet mdl-cell--4-col-phone"> | |
43 | + <h2>Latin</h2> | |
44 | + <p> | |
45 | + Lorem ipsum dolor sit amet, in girum imus nocte et consumimur igni. | |
46 | + <br> | |
47 | + Alea jacta est. | |
48 | + </p> | |
49 | + </div> | |
50 | + </div> | |
51 | + | |
52 | + </main> | |
53 | +</div> | |
54 | + | |
55 | +{% endblock %} | |
56 | + | |
57 | + | |
58 | +{#### CSS ####################################################################} | |
59 | + | |
60 | +{% block styles %} | |
61 | +{{ super() }} | |
62 | +{% endblock %} | |
63 | + | |
64 | + | |
65 | +{#### JAVASCRIPT #############################################################} | |
66 | + | |
67 | +{% block scripts_footer %} | |
68 | +{{ super() }} | |
69 | +{% endblock %} | ... | ... |
web/view/layout.html.jinja2
... | ... | @@ -56,6 +56,8 @@ |
56 | 56 | <div class="mdl-mini-footer__left-section"> |
57 | 57 | <p style="float: left; margin: 1.5em;"> |
58 | 58 | <a class="mdl-mini-footer__link" href="https://gitlab.irap.omp.eu/CDPP/SPACEWEATHERONLINE">{{ version }}</a> |
59 | + — | |
60 | + <a class="mdl-mini-footer__link" href="about.html">About</a> | |
59 | 61 | <br /> |
60 | 62 | {{ visits }} visits since 2017 |
61 | 63 | </p> |
... | ... | @@ -65,8 +67,6 @@ |
65 | 67 | The <a href="http://www.europlanet-2020-ri.eu/">Europlanet 2020 Research Infrastructure</a> project has received funding |
66 | 68 | from the <a href="https://ec.europa.eu/programmes/horizon2020/">European Union's Horizon 2020</a> research and innovation programme |
67 | 69 | under grant agreement N° 654208. |
68 | - <br> | |
69 | - If you like the pixel art planets, you can <a href="https://www.redbubble.com/people/spacefruitdox/portfolio" title="We're not affiliated with the author of these images in any way, but they're nice and this is a way of saying thanks.">buy goodies</a> of them. | |
70 | 70 | </p> |
71 | 71 | </div> |
72 | 72 | <div class="mdl-mini-footer__right-section"> | ... | ... |