Initial commit
This commit is contained in:
181
templates/author.twig
Normal file
181
templates/author.twig
Normal file
@@ -0,0 +1,181 @@
|
||||
{% extends "base.twig" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="article category--le-laboratoire">
|
||||
<div class="full-block">
|
||||
|
||||
<div class="category-header-top">
|
||||
<nav class="breadcrumb" aria-label="Fil d'Ariane">
|
||||
<a href="{{ function('home_url', '/') }}">{{ current_language == 'en' ? 'Home' : 'Accueil' }}</a>
|
||||
<span class="breadcrumb__separator">→</span>
|
||||
<a class="breadcrumb__cat" href="{{ current_language == 'en' ? function('home_url', '/en/le-laboratoire/') : function('home_url', '/le-laboratoire/') }}">{{ current_language == 'en' ? 'The department' : 'Le laboratoire' }}</a>
|
||||
<span class="breadcrumb__separator">→</span>
|
||||
<a class="breadcrumb__cat" href="{{ current_language == 'en' ? function('home_url', '/en/membres/') : function('home_url', '/membres/') }}">{{ current_language == 'en' ? 'Lab members' : 'Membres du laboratoire' }}</a>
|
||||
</nav>
|
||||
{% if author_edit_link %}
|
||||
<a href="{{ author_edit_link }}" class="link-button" target="_blank" rel="noopener">
|
||||
<i class="iconoir-edit-pencil"></i>{{ current_language == 'en' ? 'Edit profile' : 'Éditer le profil' }}
|
||||
</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% if author.avatar_url %}
|
||||
<div class="author-header">
|
||||
<div class="author-avatar">
|
||||
<img src="{{ author.avatar_url }}" alt="{{ author.display_name }}">
|
||||
</div>
|
||||
<div class="author-identity">
|
||||
<h2><p>{{ author.display_name }}</p></h2>
|
||||
{% if author.role_label or author.role_complement or author.affiliation %}
|
||||
<p class="author-role">
|
||||
{{ author.role_label }}{% if author.role_complement %} {{ author.role_complement }}{% if author.affiliation %},{% endif %}{% endif %}{% if author.affiliation %} {{ author.affiliation }}{% endif %}
|
||||
</p>
|
||||
{% endif %}
|
||||
<p class="maj">{{ current_language == 'en' ? 'Updated on' : 'Mis à jour le' }} {{ author.user_since }}</p>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="article-content">
|
||||
|
||||
{% if author.email or author.liens_externes or author.documents or author.hal_publications_url %}
|
||||
<div class="sidebar">
|
||||
<div class="sidebar-container">
|
||||
<div class="sidebar-section">
|
||||
{% if author.email %}
|
||||
<a href="mailto:{{ author.email }}" class="link-button"><i class="iconoir-mail"></i>{{ author.email }}</a>
|
||||
{% endif %}
|
||||
{% for doc in author.documents %}
|
||||
<a href="{{ doc.url }}" class="link-button{% if ' ' in doc.title %} link-button--wrap-word{% endif %}" target="_blank" rel="noopener"><i class="iconoir-page"></i>{{ doc.title }}</a>
|
||||
{% endfor %}
|
||||
{% for lien in author.liens_externes %}
|
||||
<a href="{{ lien.url }}" class="link-button{% if ' ' in lien.titre %} link-button--wrap-word{% endif %}" target="_blank" rel="noopener"><i class="iconoir-open-new-window"></i>{{ lien.titre }}</a>
|
||||
{% endfor %}
|
||||
{% if author.hal_publications_url %}
|
||||
<a href="{{ author.hal_publications_url }}" class="link-button link-button--wrap-word" target="_blank" rel="noopener"><i class="iconoir-open-new-window"></i>Publications HAL</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="main-content-text">
|
||||
|
||||
{% if not author.avatar_url %}
|
||||
<div class="author-identity">
|
||||
<h2><p>{{ author.display_name }}</p></h2>
|
||||
{% if author.role_label or author.role_complement or author.affiliation %}
|
||||
<p class="author-role">
|
||||
{{ author.role_label }}{% if author.role_complement %} {{ author.role_complement }}{% if author.affiliation %},{% endif %}{% endif %}{% if author.affiliation %} {{ author.affiliation }}{% endif %}
|
||||
</p>
|
||||
{% endif %}
|
||||
<p class="maj">{{ current_language == 'en' ? 'Updated on' : 'Mis à jour le' }} {{ author.user_since }}</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if current_language == 'en' and author.bio_en %}
|
||||
<div class="author-bio">{{ author.bio_en|raw }}</div>
|
||||
{% elseif author.bio %}
|
||||
<div class="author-bio">{{ author.bio|raw }}</div>
|
||||
{% endif %}
|
||||
|
||||
{% if author.domaines_tags %}
|
||||
<p class="article-field mots-cles">
|
||||
<span class="inline-title">{{ current_language == 'en' ? 'Research areas' : 'Domaines de recherches' }} :</span>
|
||||
{% for tag in author.domaines_tags %}
|
||||
<a href="{{ tag.url }}" class="keyword-link">{{ tag.name }}</a>{% if not loop.last %}, {% endif %}
|
||||
{% endfor %}
|
||||
</p>
|
||||
{% endif %}
|
||||
{% if current_language == 'en' and author.domaines_en %}
|
||||
<div class="article-field domaines-autres">
|
||||
{% if not author.domaines_tags %}<span class="inline-title">Research areas :</span>{% endif %}
|
||||
{{ author.domaines_en|raw }}
|
||||
</div>
|
||||
{% elseif author.domaines %}
|
||||
<div class="article-field domaines-autres">
|
||||
{% if not author.domaines_tags %}<span class="inline-title">{{ current_language == 'en' ? 'Research areas' : 'Domaines de recherches' }} :</span>{% endif %}
|
||||
{{ author.domaines|raw }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if current_language == 'en' and author.recherches_en %}
|
||||
<div class="article-field recherches-en-cours">
|
||||
<span class="inline-title">Current research :</span>
|
||||
{{ author.recherches_en|raw }}
|
||||
</div>
|
||||
{% elseif author.recherches %}
|
||||
<div class="article-field recherches-en-cours">
|
||||
<span class="inline-title">{{ current_language == 'en' ? 'Current research' : 'Recherches en cours' }} :</span>
|
||||
{{ author.recherches|raw }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if author.axes %}
|
||||
<p class="article-field mots-cles">
|
||||
<span class="inline-title">{{ current_language == 'en' ? 'Thematic axes' : 'Axes thématiques' }} :</span>
|
||||
{% for axe in author.axes %}
|
||||
<a href="{{ axe.url }}" class="keyword-link">{{ axe.name }}</a>{% if not loop.last %}, {% endif %}
|
||||
{% endfor %}
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
{% if author.titre_these or author.resume_these or author.resume_these_en %}
|
||||
<section class="seances-section">
|
||||
<h3>{{ current_language == 'en' ? 'Thesis' : 'Thèse' }}</h3>
|
||||
{% if author.titre_these %}
|
||||
<p class="author-titre-these">{{ author.titre_these }}</p>
|
||||
{% endif %}
|
||||
{% if author.date_soutenance %}
|
||||
<p class="article-field">
|
||||
<span class="these-inline-title">{{ current_language == 'en' ? 'Defended in' : 'Soutenue en' }} </span>
|
||||
{{ author.date_soutenance }}
|
||||
</p>
|
||||
{% endif %}
|
||||
{% if author.directeur_thalim or author.autre_directeur %}
|
||||
<p class="article-field">
|
||||
<span class="these-inline-title">{{ current_language == 'en' ? 'Supervisor' : 'Direction' }} :</span>
|
||||
{% if author.directeur_thalim %}
|
||||
<a href="{{ author.directeur_thalim.url }}">{{ author.directeur_thalim.name }}</a>{% if author.autre_directeur %}, {% endif %}
|
||||
{% endif %}
|
||||
{% if author.autre_directeur %}{{ author.autre_directeur }}{% endif %}
|
||||
</p>
|
||||
{% endif %}
|
||||
{% if current_language == 'en' and author.resume_these_en %}
|
||||
<div class="author-resume-these">{{ author.resume_these_en|raw }}</div>
|
||||
{% elseif author.resume_these %}
|
||||
<div class="author-resume-these">{{ author.resume_these|raw }}</div>
|
||||
{% endif %}
|
||||
</section>
|
||||
{% endif %}
|
||||
|
||||
{% if author_posts %}
|
||||
<div class="author-posts-section">
|
||||
{% for group in author_posts %}
|
||||
<div class="author-posts-item">
|
||||
<h3 class="author-posts-header" data-seance-toggle>
|
||||
{{ group.cat_name }}
|
||||
<i class="iconoir-nav-arrow-down author-posts-chevron"></i>
|
||||
</h3>
|
||||
<div class="author-posts-content" style="display: none;">
|
||||
<div class="author-post-grid">
|
||||
{% for post in group.posts %}
|
||||
{% include 'partials/post-card.twig' with {
|
||||
post: post,
|
||||
card: group.cards[post.ID],
|
||||
show_category: false
|
||||
} %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user