From: Michael Tremer Date: Fri, 27 Nov 2020 18:51:04 +0000 (+0000) Subject: people: Update design of call page X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dfea34a290734ae58c1f3c466c3f55ccccff7270;p=ipfire.org.git people: Update design of call page Signed-off-by: Michael Tremer --- diff --git a/src/templates/people/call.html b/src/templates/people/call.html index 12d5fd78..83edd816 100644 --- a/src/templates/people/call.html +++ b/src/templates/people/call.html @@ -2,10 +2,10 @@ {% block title %}{{ account }} - {{ _("Call") }}{% end block %} -{% block content %} -
-
-

+{% block container %} +
+
+

{% if call.direction == "inbound" %} {{ _("Call to") }} @@ -23,53 +23,73 @@ {{ format_phone_number(call.caller_number) }} {% end %} {% end %} -

-
{{ locale.format_date(call.time_answered or call.time_start) }}
+

-

- {% if call.duration %} - {{ format_time(call.duration) }} - {% else %} - {{ _("Not Answered") }} - {% end %} -

+
    +
  • + {{ locale.format_date(call.time_answered or call.time_start, relative=False) }} +
  • + +
  • + {% if call.duration %} + {{ format_time(call.duration) }} + {% else %} + {{ _("Not Answered") }} + {% end %} +
  • +

    +
+
-
{{ _("Media Information") }}
+
+
+

{{ _("Media Information") }}

{% for c in (call, call.bleg) %} {% if c %} -
-
-

- +

+
+
+
{% if c == call %} {{ _("Your Leg") }} {% else %} {{ _("Other Leg") }} {% end %} - -

-

- {% module MOS(c) %} -

+ {% if c.user_agent %} + + ({{ c.user_agent }}) + + {% end %} +
+ + -
-
{{ _("Codec") }}
-
{{ c.codec or _("N/A") }}
+

+ {% module MOS(c) %} +

-
{{ _("Data Transferred") }}
-
{{ format_size(c.size) }}
+
    + {% if c.codec %} +
  • + {{ c.codec }} +
  • + {% end %} -
    {{ _("User Agent") }}
    -
    {{ c.user_agent or _("N/A") }}
    -
+ {% if c.size %} +
  • + {{ format_size(c.size) }} +
  • + {% end %} + +
    {% end %} {% end %}
    -
    +
    {% end %} diff --git a/src/templates/people/modules/mos.html b/src/templates/people/modules/mos.html index 5ae9ddb3..493fc4d0 100644 --- a/src/templates/people/modules/mos.html +++ b/src/templates/people/modules/mos.html @@ -1,12 +1,20 @@ {% if call.mos %} - + {% if call.mos >= 4.5 %} + {% set color = "text-success" %} + {% elif call.mos >= 4.3 %} + {% set color = "text-warning" %} + {% else %} + {% set color = "text-danger" %} + {% end %} + + {% for i in range(5) %} {% if call.mos > (i + 0.5) %} - + {% elif call.mos > i %} - + {% else %} - + {% end %} {% end %}