From 16a872db1582e95df77f0b491119cc8ea042649b Mon Sep 17 00:00:00 2001 From: Jan Koppe Date: Fri, 1 May 2020 14:17:46 +0200 Subject: [PATCH] add status symbols to stream and restreamconfig lists --- restream/templates/restream/restreamconfig_list.html | 10 +++++++++- rtmp/templates/rtmp/stream_list.html | 8 ++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/restream/templates/restream/restreamconfig_list.html b/restream/templates/restream/restreamconfig_list.html index ae4fe8b..40c61fc 100644 --- a/restream/templates/restream/restreamconfig_list.html +++ b/restream/templates/restream/restreamconfig_list.html @@ -16,6 +16,7 @@ {% trans "name" %} + {% trans "active" %} {% trans "actions" %} @@ -24,7 +25,14 @@ {% get_obj_perms user for object as "obj_perms" %} {% if "view_restreamconfig" in obj_perms %} - {{ object.name }} + {{ object.name }} + + {% if object.active %} + {% fa 'check-circle' %} + {% else %} + {% fa 'times-circle' %} + {% endif %} +
{% trans "details" %} diff --git a/rtmp/templates/rtmp/stream_list.html b/rtmp/templates/rtmp/stream_list.html index b314a62..3833f93 100644 --- a/rtmp/templates/rtmp/stream_list.html +++ b/rtmp/templates/rtmp/stream_list.html @@ -16,6 +16,7 @@ {% trans "name" %} + {% trans "publishing" %} {% trans "actions" %} @@ -25,6 +26,13 @@ {% if "view_stream" in obj_perms %} {{ object.name }} + + {% if object.publish_counter > 0 %} + {% fa 'check-circle' %} + {% else %} + {% fa 'times-circle' %} + {% endif %} +