mirror of https://git.stjo.hn/planiverse
Show visibility of statuses
Added an icon to show the visibility of a status (public, unlisted, private, or direct). This goes next to the up arrow indicating a reply, so this area can be used for other symbols regarding the status' properties.
This commit is contained in:
parent
c0e7838308
commit
c3e6b50f37
|
@ -71,7 +71,7 @@ div.actions span.reblogged a {
|
||||||
color: green;
|
color: green;
|
||||||
}
|
}
|
||||||
|
|
||||||
time, span.event-action {
|
time, span.event-indicators {
|
||||||
font-size: smaller;
|
font-size: smaller;
|
||||||
margin-left: 1em;
|
margin-left: 1em;
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,21 @@
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
<span class="event-indicators">
|
||||||
|
@if ($visibility !== null)
|
||||||
|
<span class="visibility">
|
||||||
|
@if ($visibility === 'public')
|
||||||
|
<span title="public">○</span>
|
||||||
|
@elseif ($visibility === 'unlisted')
|
||||||
|
<span title="unlisted">◌</span>
|
||||||
|
@elseif ($visibility === 'private')
|
||||||
|
<span title="private">🔒</span>
|
||||||
|
@elseif ($visibility === 'direct')
|
||||||
|
<span title="direct">✉</span>
|
||||||
|
@endif
|
||||||
|
</span>
|
||||||
|
@endif
|
||||||
|
|
||||||
@if ($type !== null)
|
@if ($type !== null)
|
||||||
<span class="event-action">
|
<span class="event-action">
|
||||||
@if ($type === 'mention')
|
@if ($type === 'mention')
|
||||||
|
@ -25,6 +40,7 @@
|
||||||
@endif
|
@endif
|
||||||
</span>
|
</span>
|
||||||
@endif
|
@endif
|
||||||
|
</span>
|
||||||
|
|
||||||
<time datetime="{{ $created_at }}">
|
<time datetime="{{ $created_at }}">
|
||||||
@php
|
@php
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
@component('event_info', [
|
@component('event_info', [
|
||||||
'account' => $status['account'],
|
'account' => $status['account'],
|
||||||
'created_at' => $status['created_at'],
|
'created_at' => $status['created_at'],
|
||||||
'type' => $status['in_reply_to_id'] === null ? null : 'reply'
|
'type' => $status['in_reply_to_id'] === null ? null : 'reply',
|
||||||
|
'visibility' => $status['visibility']
|
||||||
])
|
])
|
||||||
@endcomponent
|
@endcomponent
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue