Update website

This commit is contained in:
Guilhem Lavaux 2024-11-19 08:02:04 +01:00
parent 4413528994
commit 1d90fbf296
6865 changed files with 1091082 additions and 0 deletions

70
views/admin.mustache Normal file
View file

@ -0,0 +1,70 @@
<!doctype html>
<html lang="en">
{{> header }}
<style>
.label_journal, .label_authors, .label_ads, .label_title {
font-weight: bold;
color: red;
}
.label_arxiv {
color: blue;
border-bottom: 1px dotted;
}
.label_arxiv:hover {
color: red;
border-bottom: none;
}
.author:hover {
background-color: #0000f0;
color: #f00000;
}
</style>
<body>
<div class="container">
<h1>Hello, world!</h1>
<button type="button" class="btn btn-primary" data-bind="click: init_db">Init DB</button>
<button type="button" class="btn btn-primary" data-bind="click: refresh_papers">Get new papers</button>
<button type="button" class="btn btn-primary" data-bind="click: list_papers">List papers</button>
<button type="button" class="btn btn-primary" data-bind="click: logout">Logout</button>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" data-bind="checked: show_all_papers">
<label class="form-check-label">Show all papers?</label>
</div>
<div class="row" style="margin-top:1em">
<div class="alert alert-success" role="alert" style="display: none" data-bind="visible: (result_status()==0)">
<svg class="bi flex-shrink-0 me-2" width="24" height="24" role="img" aria-label="Success:"><use xlink:href="#check-circle-fill"/></svg>
Result of the query:
<hr/>
<p class="mb-0" data-bind="text: result"></p>
</div>
</div>
<div class="row" style="margin-top:1em">
<div class="alert alert-danger" role="alert" style="display: none" data-bind="visible: (result_status()==1)">
<svg class="bi flex-shrink-0 me-2" width="24" height="24" role="img" aria-label="Danger:"><use xlink:href="#exclamation-triangle-fill"/></svg>
Error during the query:
<hr/>
<p class="mb-0" data-bind="text: result"></p>
<p class="mb-0" data-bind="foreach: result_trace">
<span data-bind="text: file"></span>: <span data-bind="text: $data['function']"></span> (line <span data-bind="text: line"></span>)<br/>
</p>
</div>
</div>
{{> papers }}
</div>
</body>
{{> footer}}
</html>

18
views/admin_init.mustache Normal file
View file

@ -0,0 +1,18 @@
<!doctype html>
<html lang="en">
{{> header }}
<body>
<div class="container">
<h1>Initializing database...</h1>
<a role="button" class="btn btn-primary" href="/admin/init.php">Init DB</a>
<button type="button" class="btn btn-primary">Get new papers</button>
<button type="button" class="btn btn-primary">List papers</button>
</div>
</body>
{{> footer}}
</html>

View file

@ -0,0 +1,14 @@
{{> public_header}}
{{> generic_header}}
<!-- Wrapper -->
<div id="wrapper">
<div class="inner">
<h1 class="major">Invalid email request</h1>
<p>Something was wrong while processing the email.</p>
</div>
</div>
{{> public_footer}}

21
views/email_sent.mustache Normal file
View file

@ -0,0 +1,21 @@
{{> public_header}}
{{> generic_header}}
<!-- Wrapper -->
<div id="wrapper">
<section id="main" class="wrapper">
<div class="inner">
<h1 class="major">{{status_summary}}</h1>
<p>{{status_detail}}</p>
<p>The following message was submitted:</p>
<pre>
{{message}}
</pre>
</div>
</section>
</div>
{{> public_footer}}

View file

@ -0,0 +1 @@
<!-- <script type="text/javascript" src="{{ ROOT_URL }}/assets/bootstrap/js/bootstrap.min.js"></script> -->

View file

@ -0,0 +1 @@
<!-- <link href="{{ ROOT_URL }}/assets/bootstrap/css/bootstrap.min.css" rel="stylesheet"> -->

View file

@ -0,0 +1,3 @@
{{> bootstrap }}
{{#scripts}}<script type="text/javascript" src="{{ ROOT_URL }}/assets/{{.}}"></script>{{/scripts}}

View file

@ -0,0 +1,12 @@
<!-- Header -->
<header id="header">
<a href="/index.php" class="title">Guilhem Lavaux</a>
<nav>
<ul>
<li><a href="/index.php">Home</a></li>
<li><a href="/cv.php">CV</a></li>
<li><a href="/publications.php">Publications</a></li>
</ul>
</nav>
</header>

View file

@ -0,0 +1,11 @@
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
{{> bootstrap_css }}
<title>Hello, world!</title>
</head>

View file

@ -0,0 +1,19 @@
<div class="row" data-bind="visible: paper_list">
List of papers in the database:
<div class="mb-0" data-bind="foreach: papers" class="list-group papers">
<span class="list-group-item list-group-item-action" data-bind="visible: ($data.owned() || $root.show_all_papers)">
<span class="label_ads">ADS id: </span><span data-bind="text: ads"></span><br/>
<span class="label_title">Title:</span> <span data-bind="text: title"></span><br/>
<span class="label_authors">Authors:</span>
<span data-bind="foreach: authors"><span class="author" data-bind="text: $data"></span>; </span><br/>
<!--ko if: $data['journal'] --> <span class="label_journal">Journal:</span> <span data-bind="text: journal"></span><br/> <!--/ko-->
<!--ko if: $data['arxiv'] --> <a class="label_arxiv" data-bind="attr: { href: ('https://arxiv.org/abs/' + $data['arxiv'])}">arXiV: <span data-bind="text: arxiv"></span></a>
<!--/ko-->
<!--ko if: $data['doi'] --> <span class="label_arxiv">DOI: <span data-bind="text: doi"></span></span> <!--/ko-->
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" data-bind="checked: $data.owned">
<label class="form-check-label">Owned?</label>
</div>
</span>
</div>
</div>

View file

@ -0,0 +1,26 @@
<!-- Footer -->
<footer id="footer" class="wrapper style1-alt">
<div class="inner">
<ul class="menu">
<li>&copy; Guilhem Lavaux 2022. All rights reserved.</li><li>Design: <a href="http://html5up.net">HTML5 UP</a></li>
</ul>
</div>
</footer>
<!-- Scripts -->
<script src="/assets/static/js/jquery.min.js"></script>
<script src="/assets/static/js/jquery.scrollex.min.js"></script>
<script src="/assets/static/js/jquery.scrolly.min.js"></script>
<script src="/assets/static/js/browser.min.js"></script>
<script src="/assets/static/js/breakpoints.min.js"></script>
<script src="/assets/static/js/util.js"></script>
<script src="/assets/static/js/main.js"></script>
<script type="module" src="https://esm.sh/emfed@1"></script>
{{#other_scripts}}<script src="/assets/{{.}}"></script>{{/other_scripts}}
{{#configure_script}}<script type="text/javascript">{{{.}}}</script>{{/configure_script}}
{{#external_scripts}}<script {{{.}}}></script>{{/external_scripts}}
{{#boot_script}}<script type="text/javascript">{{{.}}}</script>{{/boot_script}}
</body>
</html>

View file

@ -0,0 +1,19 @@
<!DOCTYPE HTML>
<!--
Hyperspace by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
<head>
<title>{{title}}</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="/assets/static/css/main.css" />
<link rel="stylesheet" type="text/css" href="https://esm.sh/emfed@1/toots.css">
<noscript><link rel="stylesheet" href="/assets/static/css/noscript.css" /></noscript>
<style>
.toots { font-size:initial; line-height:initial; max-width:100%;}
.toots a.user,a.permalink { border-bottom: none; }</style>
</head>
<body class="is-preload">

63
views/public/cv.mustache Normal file
View file

@ -0,0 +1,63 @@
{{> public_header}}
{{> generic_header}}
<style>
thead {
font-weight: bold;
color: white;
}
tbody > tr > td:first-child {
color: #99d89e;
font-weight: bold;
}
</style>
<!-- Wrapper -->
<div id="wrapper">
<section id="main" class="wrapper style2">
<div class="inner">
<h1 class="major">Curriculum Vitae</h1>
<div class="table-wrapper">
{{{short}}}
</div>
</div>
</div>
</section>
<section id="grants" class="wrapper style1">
<div class="inner">
<h1 class="major">Grants and Awards</h1>
<div class="table-wrapper">
{{{grants}}}
</div>
</div>
</section>
<section id="responsabilities" class="wrapper style3">
<div class="inner">
<h1 class="major">Responsabilities</h1>
<div class="table-wrapper">
{{{responsabilities}}}
</div>
</div>
</section>
<section id="grants" class="wrapper style3">
<div class="inner">
<h1 class="major">Outreach</h1>
<div class="table-wrapper">
{{{outreach}}}
</div>
</div>
</section>
</div>
{{> public_footer}}

View file

@ -0,0 +1,32 @@
{{> public_header}}
{{> generic_header}}
<style>
thead {
font-weight: bold;
color: white;
}
tbody > tr > td:first-child {
color: #10f020;
font-weight: bold;
}
</style>
<!-- Wrapper -->
<div id="wrapper">
<section id="main" class="wrapper style2">
<div class="inner">
{{{content}}}
</div>
</div>
</section>
</div>
{{> public_footer}}

View file

@ -0,0 +1,18 @@
{{> public_header}}
{{> generic_header}}
<!-- Wrapper -->
<div id="wrapper">
<section id="main" class="wrapper style2">
<div class="inner">
<h1>Error 404: Page not found</h1>
<p> What you are looking for is not there... </p>
</div>
</section>
</div>
{{> public_footer}}

156
views/public_index.mustache Normal file
View file

@ -0,0 +1,156 @@
{{> public_header}}
<!-- Sidebar -->
<section id="sidebar">
<div class="inner">
<nav>
<ul>
<li><a href="#intro">Presentation</a></li>
<li><a href="#what">Research activities</a></li>
<li><a href="#publications">Latest publications</a></li>
<li><a href="#contact">Get in touch</a></li>
</ul>
</nav>
</div>
</section>
<!-- Wrapper -->
<div id="wrapper">
<!-- Intro -->
<section id="intro" class="wrapper style1 fullscreen fade-up">
<div class="inner shade-spotlight">
<h1>Guilhem Lavaux</h1>
<p>Full time CNRS research director at the Institut d'Astrophysique de Paris.</p>
<ul class="actions">
<li><a href="#what" class="button scrolly">Learn more</a></li>
</ul>
</div>
</section>
<!-- Toots -->
<!-- <section id="toots" class="wrapper style2 fade-up">
<div class="inner">
<h2>Latest toots</h2>
</div>
</section>-->
<!-- Two -->
<section id="what" class="wrapper style3 fade-up">
<div class="inner">
<h2>Research activities</h2>
<p>I am a cosmologists, statisticians and high performance software developper.</p>
<div class="features">
<section>
<span class="icon solid major fa-scroll"></span>
<h3>Curriculum vitae</h3>
<p>Check my curriculum vitae for a quick view on my academic history.</p>
<a href="/cv.php" class="button">Learn more</a></li>
</section>
<section>
<span class="icon solid major fa-code"></span>
<h3>Public softwares</h3>
<p>Find out about free software developped for Astronomy.</p>
<a href="/v.php/code" class="button">Learn more</a></li>
</section>
<section>
<span class="icon solid major fa-scroll"></span>
<h3>Publication list</h3>
<p>Full list of my publications, curated.</p>
<a href="publications.php" class="button">Browse</a></li>
</section>
<section>
<span class="icon solid major fa-atom"></span>
<h3>Scientific topics</h3>
<p>Science that I am interested in.</p>
<a href="/v.php/science" class="button">Learn more</a></li>
</section>
<section>
<span class="icon solid major fa-link"></span>
<h3>The Aquila Consortium</h3>
<p>Go and visit the science developped by our collaboration.</p>
<a href="https://www.aquila-consortium.org/" class="button">Visit Aquila</a></li>
</section>
<section>
<span class="icon major fa-gem"></span>
<h3>Cool categorized projects</h3>
<p>Find out more about cool projects found on Internet.</p>
<a href="/v.php/projects" class="button">Learn more</a></li>
</section>
</div>
</div>
</section>
<!-- Publi -->
<section id="publications" class="wrapper style2 fade-up">
<div class="inner">
<h2>Latest publications</h2>
{{#publications}}
{{{ title }}}, <b>arXiv:<a href="https://arxiv.org/abs/{{ arxiv }}">{{ arxiv }}</a></b>
<br />
{{/publications}}
</div>
</section>
<!-- Three -->
<section id="contact" class="wrapper style1 fade-up">
<div class="inner">
<h2>Get in touch</h2>
<p>You can contact me directly through this form:</p>
<!-- <div class="style1">
<section style="width:100%">
<a class="mastodon-feed" href="https://mastodon.social/@CosmoLavaux" data-exclude-replies="true"
data-toot-limit="2" data-toot-account-id="108241970250686036">follow me in the Fediverse</a>
</div>-->
<div class="split style1">
<section class="style1">
<div class="inner">
<h3>Address</h3>
<p><span>Institut d'Astrophysique de Paris / CNRS<br />
98 bis Boulevard Arago<br />
F-75014 Paris <br />
France</span></p>
</div>
</section>
<section class="style1" style="width:500px;">
<ul>
<li>
<h3>Phone</h3>
<span>+33 (0) 1 44 32 8000</span>
<h3>Email</h3>
<span><a href="mailto:guilhem.lavaux@iap.fr">guilhem.lavaux@iap.fr</a></span>
</li>
<li>
<h3>Social</h3>
<ul class="icons">
<li><a href="https://mastodon.social/@CosmoLavaux" rel="me"
class="icon brands fa-mastodon"><span class="label">Mastodon</span></a>
</li>
<!-- <li><a href="#" class="icon brands fa-twitter"><span class="label">Twitter</span></a></li> -->
<li><a href="https://github.com/lavaux" class="icon brands fa-github"><span
class="label">GitHub</span></a></li>
<li><a href="https://gitlab.in2p3.fr/lavaux" class="icon brands fa-gitlab"><span
class="label">Gitlab
IN2P3</span></a></li>
<li><a href="https://bitbucket.org/glavaux" class="icon brands fa-bitbucket"><span
class="label">Bitbucket</span></a></li>
<li><a href="https://www.linkedin.com/in/guilhem-l-67a9b01"
class="icon brands fa-linkedin-in"><span class="label">LinkedIn</span></a>
</li>
</ul>
</li>
</ul>
</section>
</div>
</div>
</section>
</section>
</div>
{{> public_footer}}

View file

@ -0,0 +1,72 @@
{{> public_header}}
<style>
.authors.author {
}
span.author::after {
content:";";
}
span.author:last-child::after {
content:"";
}
.citation_count {
color: red;
}
.pubdetail {
color: rgba(200,200,255, 0.55);
}
</style>
{{> generic_header}}
<!-- Wrapper -->
<div id="wrapper">
<section id="main" class="wrapper">
<div class="inner">
<h1 class="major">List of publications</h1>
<p><strong>Usage:</strong> you may sort by year or by citations by clicking on the corresponding header in the table below (see dotted line under the respective header).</p>
<div class="table-wrapper">
<table id="publications">
<thead>
<th onclick="sortTable(0)">Title<br/>
<span class="authors">Authors</span><br/>
<span class="doi">DOI</span>
</th>
<th style='min-width:3em'><a href="publications.php?sort_year={{sort_year}}">Year</a></th>
<th style='min-width:10em'>arXiv</th>
<th><a href="publications.php?sort={{sort_citation}}">Citations</a></th>
</thead>
<tbody>
{{# publi }}
<tr>
<td>
<b>{{{ title }}}</b><br/>
<div class='authors'>
{{# authors }}
<span class="author">{{ . }}</span>
{{/ authors }}
</div>
<div class='doi'><a href='https://dx.doi.org/{{doi}}' target="_blank">DOI: {{ doi }}</a></div>
{{#doi}}<div class='pubdetail'>{{journal}} ({{year}}) {{#volume}}<span class="publi-volume">{{.}}</span>{{/volume}}{{#page}}, {{.}}{{/page}}</div>{{/doi}}
</td>
<td>{{ year }}</td>
<td><a href="https://arxiv.org/abs/{{ arxiv }}" target="_blank">{{ arxiv }}</a></td>
<td><span class="citation_count">{{ citation_count }}</span></td>
</tr>
{{/ publi }}
</tbody>
</table>
</div>
</div>
</section>
</div>
{{> public_footer}}

View file

@ -0,0 +1,46 @@
{{=<% %>=}}
\documentclass[french]{article}
\usepackage[a4paper]{geometry}
\geometry{verbose,tmargin=2cm,bmargin=2cm,lmargin=1.5cm,rmargin=1.5cm}
\usepackage{fancyhdr}
\pagestyle{fancy}
\setlength{\parindent}{0bp}
\usepackage{array}
\usepackage{wrapfig}
\usepackage{url}
\usepackage{graphicx}
\usepackage{ulem}
\usepackage{hyperref}
\usepackage[utf8]{inputenc}
\fancyfoot[C]{4}
\lhead{XXX, Lavaux G.}
\rhead{Liste des publications}
\cfoot{\thepage}
\newcommand{\myarticle}[4]{\textbf{#1}; \textit{#2}; #3;
\ifx\hfuzz#4\hfuzz
{}%
\else
{\href{http://arxiv.org/abs/#4}{ArXiV: #4}}%
\fi}
\newcommand{\myarticlep}[3]{\textbf{#1}; \textit{#2}; #3}
\newcommand{\me}{\uline{Lavaux, G.}}
\begin{document}
\noindent \begin{center}
\end{center}
\section*{\textsc{Articles soumis}}
\begin{enumerate}
<%# publi %>
\item \myarticle{<%title%>}{<%authors_merged%>}{}{<%arxiv%>}
<%/ publi %>
\end{document}