mirror of
https://github.com/Michatec/MiniFaceBook.git
synced 2026-03-31 23:46:30 +02:00
- Added Gravatar Integration
- Realtime Notify & Notify API - Some bugs fixed
This commit is contained in:
@@ -7,10 +7,23 @@
|
||||
<li class="list-group-item d-flex justify-content-between align-items-center">
|
||||
<span>
|
||||
{% if friend.profile_pic and friend.profile_pic != 'default.png' %}
|
||||
<img src="{{ url_for('static', filename='profile_pics/' + friend.profile_pic) }}" alt="{{ friend.username }}" class="profile-pic me-2">{{ friend.username }}
|
||||
{% if friend.profile_pic.startswith('http') %}
|
||||
{% if SHOPITEM_ID_GOLDRAHMEN in friend.shop_items | map(attribute='item_id') | list %}
|
||||
<img src="{{ friend.profile_pic }}" class="profile-pic me-2" style="border-color: gold;" alt="Profile Picture">
|
||||
{% else %}
|
||||
<img src="{{ friend.profile_pic }}" class="profile-pic me-2" alt="Profile Picture">
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% if SHOPITEM_ID_GOLDRAHMEN in friend.shop_items | map(attribute='item_id') | list %}
|
||||
<img src="{{ url_for('static', filename='profile_pics/' ~ friend.profile_pic) }}" class="profile-pic me-2" style="border-color: gold;">
|
||||
{% else %}
|
||||
<img src="{{ url_for('static', filename='profile_pics/' ~ friend.profile_pic) }}" class="profile-pic me-2">
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<i class="bi bi-person-circle me-1"></i>{{ friend.username }}
|
||||
<i class="bi bi-person-circle me-2"></i>
|
||||
{% endif %}
|
||||
{{ friend.username }}
|
||||
</span>
|
||||
<form action="{{ url_for('friend.remove_friend', user_id=friend.id) }}" method="post" style="display:inline;">
|
||||
<button class="btn btn-warning btn-sm"><i class="bi bi-person-dash"></i> {{ _('Remove Friend') }}</button>
|
||||
@@ -26,10 +39,23 @@
|
||||
<li class="list-group-item d-flex justify-content-between align-items-center">
|
||||
<span>
|
||||
{% if req.requester.profile_pic and req.requester.profile_pic != 'default.png' %}
|
||||
<img src="{{ url_for('static', filename='profile_pics/' + req.requester.profile_pic) }}" alt="{{ req.requester.username }}" class="profile-pic me-2">{{ req.requester.username }}
|
||||
{% else %}
|
||||
<i class="bi bi-person-circle me-1"></i>{{ req.requester.username }}
|
||||
{% endif %}
|
||||
{% if req.requester.profile_pic.startswith('http') %}
|
||||
{% if SHOPITEM_ID_GOLDRAHMEN in req.requester.shop_items | map(attribute='item_id') | list %}
|
||||
<img src="{{ req.requester.profile_pic }}" class="profile-pic me-2" style="border-color: gold;" alt="Profile Picture">
|
||||
{% else %}
|
||||
<img src="{{ req.requester.profile_pic }}" class="profile-pic me-2" alt="Profile Picture">
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% if SHOPITEM_ID_GOLDRAHMEN in req.requester.shop_items | map(attribute='item_id') | list %}
|
||||
<img src="{{ url_for('static', filename='profile_pics/' ~ req.requester.profile_pic) }}" class="profile-pic me-2" style="border-color: gold;">
|
||||
{% else %}
|
||||
<img src="{{ url_for('static', filename='profile_pics/' ~ req.requester.profile_pic) }}" class="profile-pic me-2">
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<i class="bi bi-person-circle me-2"></i>
|
||||
{% endif %}
|
||||
{{ req.requester.username }}
|
||||
</span>
|
||||
<div>
|
||||
<form action="{{ url_for('friend.accept_friend', friendship_id=req.id) }}" method="post" style="display:inline;">
|
||||
|
||||
Reference in New Issue
Block a user