mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-03 01:34:34 +02:00
Allow to set and view the owner of a part lot
This commit is contained in:
parent
5f5541ca12
commit
447b54fa4b
4 changed files with 37 additions and 9 deletions
|
@ -159,11 +159,7 @@
|
|||
{% endif %}
|
||||
|
||||
{% if user is not null %}
|
||||
{% if user.fullName is not empty %}
|
||||
({{ _self.user_icon(user) }} <a href="{{ path('user_info', {"id": user.id}) }}" title="@{{ user.name }}">{{ user.fullName }}</a>)
|
||||
{% else %}
|
||||
({{ _self.user_icon(user) }} <a href="{{ path('user_info', {"id": user.id}) }}" title="@{{ user.name }}">@{{ user.name }}</a>)
|
||||
{% endif %}
|
||||
({{ _self.user_icon_link(user) }})
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
@ -180,6 +176,14 @@
|
|||
<img src="{{ avatar_helper.avatarSmURL(user) }}" class="avatar-xs" alt="User avatar" {{ stimulus_controller('elements/hoverpic') }} data-thumbnail="{{ avatar_helper.avatarMdURL(user) }}">
|
||||
{% endmacro %}
|
||||
|
||||
{% macro user_icon_link(user) %}
|
||||
{% if user.fullName is not empty %}
|
||||
{{ _self.user_icon(user) }} <a href="{{ path('user_info', {"id": user.id}) }}" title="@{{ user.name }}">{{ user.fullName }}</a>
|
||||
{% else %}
|
||||
{{ _self.user_icon(user) }} <a href="{{ path('user_info', {"id": user.id}) }}" title="@{{ user.name }}">@{{ user.name }}</a>
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro entity_preview_sm(entity) %}
|
||||
{# @var entity \App\Entity\Contracts\HasMasterAttachmentInterface #}
|
||||
{% if entity.masterPictureAttachment and entity.masterPictureAttachment.picture and attachment_manager.fileExisting(entity.masterPictureAttachment) %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue