@if (loading()) {
} @else if (channelData()) {
{{ channelData()!.channel_id }}
{{ channelData()!.internal_name }}
{{ getSubscriptionStatus().label }}
@if (resolvedOwner()) {
{{ resolvedOwner()!.displayName }}
{{ channelData()!.owner_user_id }}
} @else {
{{ channelData()!.owner_user_id }}
}
@if (channelData()!.description_name) {
{{ channelData()!.description_name }}
}
{{ channelData()!.messages_sent }}
@if (channel()) {
@if (channel()!.timestamp_lastsent) {
{{ channel()!.timestamp_lastsent | date:'yyyy-MM-dd HH:mm:ss' }}
{{ channel()!.timestamp_lastsent | relativeTime }}
} @else {
Never
}
{{ channel()!.timestamp_created | date:'yyyy-MM-dd HH:mm:ss' }}
{{ channel()!.timestamp_created | relativeTime }}
}
@if (isOwner() && channel()?.subscribe_key) {
@if (expertMode()) {
}
Scan with the SimpleCloudNotifier app to subscribe
}
@if (isOwner()) {
@if (expertMode()) {
}
| Subscriber |
Status |
Active |
Created |
Actions |
@for (sub of subscriptions(); track sub.subscription_id) {
|
{{ getUserDisplayName(sub.subscriber_user_id) }}
{{ sub.subscriber_user_id }}
|
{{ sub.confirmed ? 'Confirmed' : 'Pending' }}
|
{{ sub.active ? 'Active' : 'Inactive' }}
|
{{ sub.timestamp_created | date:'yyyy-MM-dd HH:mm:ss' }}
{{ sub.timestamp_created | relativeTime }}
|
@if (!sub.confirmed) {
} @else {
@if (expertMode()) {
}
}
|
} @empty {
|
|
}
}
| Title |
Content |
Sender |
Priority |
Time |
@for (message of messages(); track message.message_id) {
|
{{ message.title }}
{{ message.message_id }}
|
@if (message.content) {
{{ message.content | slice:0:128 }}{{ message.content.length > 128 ? '...' : '' }}
} @else {
}
|
{{ message.sender_name || '-' }}
|
{{ getPriorityLabel(message.priority) }}
|
{{ message.timestamp | date:'yyyy-MM-dd HH:mm:ss' }}
{{ message.timestamp | relativeTime }}
|
} @empty {
|
|
}
@if (messagesTotalCount() > messagesPageSize) {
}
} @else {
Channel not found
}