NDOJ/templates/chat/user_online_status.html

46 lines
1.6 KiB
HTML
Raw Permalink Normal View History

2023-09-25 07:12:06 +00:00
<div onclick="hide_right_panel()" class="back-button">
<i class="fa fa-arrow-left"></i>
</div>
2021-11-21 04:23:03 +00:00
{% if other_user %}
2023-09-25 07:12:06 +00:00
<div class="status-container" style="height: 3em; width: 3em;">
2024-04-12 06:51:57 +00:00
<img src="{{ gravatar(other_user, 135) }}" class="info-pic user-img">
2023-08-30 02:50:33 +00:00
<svg style="position:absolute; height:100%; width: 100%; transform: rotate(180deg);" >
2023-01-27 23:11:10 +00:00
<circle class="info-circle"
fill="{{'green' if other_online else 'red'}}"/>
2021-11-21 04:23:03 +00:00
</svg>
2023-01-27 23:11:10 +00:00
</div>
2023-09-25 07:12:06 +00:00
{% else %}
<div class="status-container" style="height: 3em;">
2024-04-12 06:51:57 +00:00
<img src="{{ static('icons/icon.svg') }}" class="info-pic" style="border-radius: 0px;">
2023-09-25 07:12:06 +00:00
</div>
2021-11-21 04:23:03 +00:00
{% endif %}
<span class="info-name username">
2023-01-27 23:11:10 +00:00
{% if other_user %}
2023-03-03 00:43:15 +00:00
{{link_user(other_user)}}
2023-01-27 23:11:10 +00:00
{% else%}
2023-03-03 00:43:15 +00:00
{{ _('Lobby') }}
2023-01-27 23:11:10 +00:00
{% endif %}
2021-11-21 04:23:03 +00:00
</span>
<span class="spacer"></span>
{% if other_user and not other_online %}
2023-01-27 23:11:10 +00:00
<span class="active-span">{{ relative_time(other_user.last_access, abs=_('Last online on {time}'), rel=_('Online {time}'), format=_('g:i a d/m/Y')) }}</span>
2021-11-21 04:23:03 +00:00
{% endif %}
{% if other_user %}
<div style="margin-right: 0.3em; position: relative;">
<div class="control-button small user-setting-button">
2023-01-27 23:11:10 +00:00
<i class="fa fa-ellipsis-h"></i>
2023-09-25 07:12:06 +00:00
</div>
<div class="setting-content">
<a href="{{url('toggle_ignore', other_user.id)}}" class=" {{'green' if is_ignored else 'red'}}">
{% if is_ignored %}
{{_('Unignore')}}
{% else %}
{{_('Ignore')}}
{% endif %}
</a>
2021-11-21 04:23:03 +00:00
</div>
</div>
2021-11-21 04:23:03 +00:00
{% else %}
2023-01-27 23:11:10 +00:00
<span class="active-span">{{online_count}} {{_('users are online')}}</span>
2021-11-21 04:23:03 +00:00
{% endif %}