[TEMPLATES][Cards][Blocks] Provide both actor uri and url, as well as full mention guidance
This commit is contained in:
parent
1f2638d15a
commit
cda1568db5
@ -94,12 +94,12 @@
|
|||||||
{% block note_author %}
|
{% block note_author %}
|
||||||
{# Microformat's h-card properties indicates a face icon is a "u-logo" #}
|
{# Microformat's h-card properties indicates a face icon is a "u-logo" #}
|
||||||
<a href="{{ actor_url }}" class="note-author-url u-url" role="doc-credit"
|
<a href="{{ actor_url }}" class="note-author-url u-url" role="doc-credit"
|
||||||
title="{{ nickname }}{{ '\'s profile' | trans }}">
|
title="{% trans %} %nickname%'s profile {% endtrans %}">
|
||||||
{% if fullname is not null %}{{ fullname }}{% else %}{{ nickname }}{% endif %}
|
{% if fullname is not null %}{{ fullname }}{% else %}{{ nickname }}{% endif %}
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<small class="note-author-uri" title="{{ 'Author related permalinks' | trans }}">
|
<small class="note-author-uri" title="{{ 'Author related permalinks' | trans }}">
|
||||||
<a href="{{ actor_uri }}" class="u-url" title="{{ nickname }} {{ '\'s permalink' | trans }}">{{ mention }}</a>
|
<a href="{{ actor_uri }}" class="u-url" title="{% trans %} %nickname%'s permalink {% endtrans %}">{{ mention }}</a>
|
||||||
</small>
|
</small>
|
||||||
{% endblock note_author %}
|
{% endblock note_author %}
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{% set actor_fullname = actor.getFullname() %}
|
||||||
{% set actor_nickname = actor.getNickname() %}
|
{% set actor_nickname = actor.getNickname() %}
|
||||||
{% set actor_avatar = actor.getAvatarUrl() %}
|
{% set actor_avatar = actor.getAvatarUrl() %}
|
||||||
{% set actor_avatar_dimensions = actor.getAvatarDimensions() %}
|
{% set actor_avatar_dimensions = actor.getAvatarDimensions() %}
|
||||||
@ -19,14 +20,14 @@
|
|||||||
width="{{ actor_avatar_dimensions['width'] }}"
|
width="{{ actor_avatar_dimensions['width'] }}"
|
||||||
height="{{ actor_avatar_dimensions['height'] }}">
|
height="{{ actor_avatar_dimensions['height'] }}">
|
||||||
<section>
|
<section>
|
||||||
<a class="profile-info-url" href="{{ actor_uri }}">
|
<a class="profile-info-url" href="{{ actor_url }}">
|
||||||
<strong class="profile-info-url-nickname"
|
<strong class="profile-info-url-nickname"
|
||||||
title="{% trans %} %actor_nickname%'s nickname {% endtrans %}">
|
title="{% trans %} %actor_nickname%'s profile {% endtrans %}">
|
||||||
{{ actor_nickname }}
|
{% if actor_fullname is not null %}{{ actor_fullname }}{% else %}{{ actor_nickname }}{% endif %}
|
||||||
</strong>
|
</strong>
|
||||||
{% if not actor_is_local %}
|
{% if not actor_is_local %}
|
||||||
<span class="profile-info-url-remote">
|
<span class="profile-info-url-remote">
|
||||||
{{ mention }}
|
<a href="{{ actor_uri }}" class="u-url" title="{% trans %} %actor_nickname%'s permalink {% endtrans %}">{{ mention }}</a>
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</a>
|
</a>
|
||||||
|
Loading…
Reference in New Issue
Block a user