From bd0ad7247e40c69e8266234669a508fd22f82996 Mon Sep 17 00:00:00 2001 From: Bruce Schubert Date: Sat, 29 Aug 2020 05:00:45 -0700 Subject: [PATCH 1/8] Made phone nums links to call history in Top Callers lists - Re: #87 --- callattendant/userinterface/templates/dashboard.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/callattendant/userinterface/templates/dashboard.html b/callattendant/userinterface/templates/dashboard.html index ccd203a..d576111 100644 --- a/callattendant/userinterface/templates/dashboard.html +++ b/callattendant/userinterface/templates/dashboard.html @@ -127,7 +127,7 @@

Top Permitted Callers

{% for item in top_permitted %} - {{ item.phone_no }} - + {{ item.phone_no }} -
{{ item.name }} @@ -155,7 +155,7 @@

Top Blocked Callers

{% for item in top_blocked %} - {{ item.phone_no }} - + {{ item.phone_no }} -
{{ item.name }} From 121135c2b4a942e5f64aca703426259f3547750c Mon Sep 17 00:00:00 2001 From: Bruce Schubert Date: Sat, 29 Aug 2020 05:06:25 -0700 Subject: [PATCH 2/8] Made phone numbers links to call history - Re: #87 --- callattendant/userinterface/templates/callers_blocked.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/callattendant/userinterface/templates/callers_blocked.html b/callattendant/userinterface/templates/callers_blocked.html index d9f5cd7..dbf4f91 100644 --- a/callattendant/userinterface/templates/callers_blocked.html +++ b/callattendant/userinterface/templates/callers_blocked.html @@ -24,7 +24,7 @@

Blocked Numbers

{% for row in blacklist %} - {{ row.Phone_Number }} - + {{ row.Phone_Number }} -
{{ row.Name }} From 4d5b1810a48c46332f9ec9443fbe6159df628fd0 Mon Sep 17 00:00:00 2001 From: Bruce Schubert Date: Sat, 29 Aug 2020 05:09:59 -0700 Subject: [PATCH 3/8] Made phone numbers links to call history - Re: #87 --- callattendant/userinterface/templates/callers_permitted.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/callattendant/userinterface/templates/callers_permitted.html b/callattendant/userinterface/templates/callers_permitted.html index 8cd40e8..84ddd25 100644 --- a/callattendant/userinterface/templates/callers_permitted.html +++ b/callattendant/userinterface/templates/callers_permitted.html @@ -28,7 +28,7 @@

Permitted Numbers

{% for item in whitelist %} - {{ item.Phone_Number }} - + {{ item.Phone_Number }} -
{{ item.Name }} From 466e3a275fcae7dd22e802f41235e87673a7cb85 Mon Sep 17 00:00:00 2001 From: Bruce Schubert Date: Sat, 29 Aug 2020 05:42:01 -0700 Subject: [PATCH 4/8] Added a play button to View Call - Re: #87 --- .../userinterface/templates/calls_view.html | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/callattendant/userinterface/templates/calls_view.html b/callattendant/userinterface/templates/calls_view.html index d1204fa..d4dfad2 100644 --- a/callattendant/userinterface/templates/calls_view.html +++ b/callattendant/userinterface/templates/calls_view.html @@ -53,6 +53,7 @@
Voice Message
Your browser does not support the audio element.

+ @@ -94,7 +95,17 @@
Delete voice message from {{ caller.phone_no }}?
history.back() }); -// Open the Messages page + +// Play the message +$('#play-button').on('click', function (event) { + // It doesn't work with $("#audio").play() like you would expect. The official reason is that + // incorporating it into jQuery would add a play() to every element. So instead you have to refer + // to it by its position in the array of DOM elements + // https://stackoverflow.com/a/38547039/4797523 + $("#audio")[0].play() +}); + +// Delete the messages $('#delete-message').on('click', function (event) { window.location.href = "/messages/delete/{{ caller.msg_no }}" }); From b535283e86bac7881fc8f515ef6aca028fb38131 Mon Sep 17 00:00:00 2001 From: Bruce Schubert Date: Sat, 29 Aug 2020 05:50:40 -0700 Subject: [PATCH 5/8] Added a back button to the call log - Re: #87 --- callattendant/userinterface/templates/calls.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/callattendant/userinterface/templates/calls.html b/callattendant/userinterface/templates/calls.html index 15b6f84..bdf1f44 100644 --- a/callattendant/userinterface/templates/calls.html +++ b/callattendant/userinterface/templates/calls.html @@ -66,12 +66,18 @@

Call Log + {% include 'modal_play_message.html' %} {% endblock %} {% block js %}