NDOJ/templates/chat/user_online_status.html

41 lines
1.3 KiB
HTML
Raw Normal View History

2021-11-21 04:23:03 +00:00
{% if other_user %}
2023-01-27 23:11:10 +00:00
<div class="status-container" style="height: 100%">
2023-08-24 03:14:09 +00:00
<img src="{{ gravatar(other_user, 135) }}" class="info-pic">
2023-03-03 00:43:15 +00:00
<svg style="position:absolute; height:100%; width: 100%">
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>
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 %}
2023-01-27 23:11:10 +00:00
<span style="margin-right: 0.3em" id="setting">
<button class="control-button small" style="height:100%;" id="setting-button">
<i class="fa fa-ellipsis-h"></i>
2021-11-21 04:23:03 +00:00
</button>
<div id="setting-content">
2023-01-27 23:11:10 +00:00
<li>
<a href="{{url('toggle_ignore', other_user.id)}}" class=" {{'green' if is_ignored else 'red'}}">
{% if is_ignored %}
{{_('Unignore')}}
{% else %}
{{_('Ignore')}}
{% endif %}
</a>
</li>
2021-11-21 04:23:03 +00:00
</div>
2023-01-27 23:11:10 +00:00
</span>
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 %}