Refactoring : sécurité (XSS), découpage en modules inc/* et js/admin/*, IDs résolus par slug, perf (caches, cron Gravatar, assets auto-hébergés), tests
This commit is contained in:
@@ -22,13 +22,13 @@
|
||||
{% if author.avatar_url %}
|
||||
<div class="author-header">
|
||||
<div class="author-avatar">
|
||||
<img src="{{ author.avatar_url }}" alt="{{ author.display_name }}">
|
||||
<img src="{{ author.avatar_url|esc_url }}" alt="{{ author.display_name|esc_attr }}">
|
||||
</div>
|
||||
<div class="author-identity">
|
||||
<h2><p>{{ author.display_name }}</p></h2>
|
||||
<h2><p>{{ author.display_name|esc_html }}</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 %}
|
||||
{{ author.role_label|esc_html }}{% if author.role_complement %} {{ author.role_complement|esc_html }}{% if author.affiliation %},{% endif %}{% endif %}{% if author.affiliation %} {{ author.affiliation|esc_html }}{% endif %}
|
||||
</p>
|
||||
{% endif %}
|
||||
<p class="maj">{{ current_language == 'en' ? 'Updated on' : 'Mis à jour le' }} {{ author.user_since }}</p>
|
||||
@@ -63,10 +63,10 @@
|
||||
|
||||
{% if not author.avatar_url %}
|
||||
<div class="author-identity">
|
||||
<h2><p>{{ author.display_name }}</p></h2>
|
||||
<h2><p>{{ author.display_name|esc_html }}</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 %}
|
||||
{{ author.role_label|esc_html }}{% if author.role_complement %} {{ author.role_complement|esc_html }}{% if author.affiliation %},{% endif %}{% endif %}{% if author.affiliation %} {{ author.affiliation|esc_html }}{% endif %}
|
||||
</p>
|
||||
{% endif %}
|
||||
<p class="maj">{{ current_language == 'en' ? 'Updated on' : 'Mis à jour le' }} {{ author.user_since }}</p>
|
||||
|
||||
Reference in New Issue
Block a user