mirror of
https://github.com/Michatec/MiniFaceBook.git
synced 2026-04-01 07:56:28 +02:00
Fix Username not shown
This commit is contained in:
@@ -122,6 +122,7 @@
|
|||||||
<img src="{{ url_for('static', filename='profile_pics/' ~ post.user.profile_pic) }}" width="32" class="rounded me-1" alt="Profile Picture">
|
<img src="{{ url_for('static', filename='profile_pics/' ~ post.user.profile_pic) }}" width="32" class="rounded me-1" alt="Profile Picture">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{{ post.user.username }}
|
||||||
</td>
|
</td>
|
||||||
<td>{{ post.content|truncate(50) }}</td>
|
<td>{{ post.content|truncate(50) }}</td>
|
||||||
<td>
|
<td>
|
||||||
@@ -165,6 +166,7 @@
|
|||||||
<img src="{{ url_for('static', filename='profile_pics/' ~ f.requester.profile_pic) }}" width="32" class="rounded me-1" alt="Profile Picture">
|
<img src="{{ url_for('static', filename='profile_pics/' ~ f.requester.profile_pic) }}" width="32" class="rounded me-1" alt="Profile Picture">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{{ f.requester.username }}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{% if f.receiver.profile_pic and f.receiver.profile_pic != 'default.png' %}
|
{% if f.receiver.profile_pic and f.receiver.profile_pic != 'default.png' %}
|
||||||
@@ -174,6 +176,7 @@
|
|||||||
<img src="{{ url_for('static', filename='profile_pics/' ~ f.receiver.profile_pic) }}" width="32" class="rounded me-1" alt="Profile Picture">
|
<img src="{{ url_for('static', filename='profile_pics/' ~ f.receiver.profile_pic) }}" width="32" class="rounded me-1" alt="Profile Picture">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{{ f.receiver.username }}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{% if f.status == 'accepted' %}
|
{% if f.status == 'accepted' %}
|
||||||
@@ -214,6 +217,7 @@
|
|||||||
<img src="{{ url_for('static', filename='profile_pics/' ~ comment.user.profile_pic) }}" width="32" class="rounded me-1" alt="Profile Picture">
|
<img src="{{ url_for('static', filename='profile_pics/' ~ comment.user.profile_pic) }}" width="32" class="rounded me-1" alt="Profile Picture">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{{ comment.user.username }}
|
||||||
</td>
|
</td>
|
||||||
<td>{{ comment.post.id }}</td>
|
<td>{{ comment.post.id }}</td>
|
||||||
<td>{{ comment.content|truncate(50) }}</td>
|
<td>{{ comment.content|truncate(50) }}</td>
|
||||||
@@ -334,6 +338,7 @@
|
|||||||
<img src="{{ url_for('static', filename='profile_pics/' ~ usi.user.profile_pic) }}" width="32" class="rounded me-1" alt="Profile Picture">
|
<img src="{{ url_for('static', filename='profile_pics/' ~ usi.user.profile_pic) }}" width="32" class="rounded me-1" alt="Profile Picture">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{{ usi.user.username }}
|
||||||
</td>
|
</td>
|
||||||
<td>{{ usi.item.name }}</td>
|
<td>{{ usi.item.name }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -364,6 +369,7 @@
|
|||||||
<img src="{{ url_for('static', filename='profile_pics/' ~ user.profile_pic) }}" width="32" class="rounded me-1" alt="Profile Picture">
|
<img src="{{ url_for('static', filename='profile_pics/' ~ user.profile_pic) }}" width="32" class="rounded me-1" alt="Profile Picture">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{{ user.username }}
|
||||||
</td>
|
</td>
|
||||||
<td>{{ user.reward_points() }}</td>
|
<td>{{ user.reward_points() }}</td>
|
||||||
<td>
|
<td>
|
||||||
|
|||||||
Reference in New Issue
Block a user