From 23c47f78eada85c1f897bbf348a4f802db9ef2f9 Mon Sep 17 00:00:00 2001 From: "M. Dent" Date: Fri, 22 Nov 2019 14:59:45 +0100 Subject: More descriptive connection status icons --- view/tpl/connection_template.tpl | 4 +--- view/tpl/connstatus.tpl | 1 + view/tpl/contact_template.tpl | 4 +--- view/tpl/micropro_card.tpl | 2 +- view/tpl/micropro_img.tpl | 2 +- 5 files changed, 5 insertions(+), 8 deletions(-) create mode 100644 view/tpl/connstatus.tpl (limited to 'view/tpl') diff --git a/view/tpl/connection_template.tpl b/view/tpl/connection_template.tpl index de22bcdbb..f9b46b41e 100755 --- a/view/tpl/connection_template.tpl +++ b/view/tpl/connection_template.tpl @@ -24,9 +24,7 @@ {{$contact.name}} - {{if $contact.oneway}} - - {{/if}} + {{include "connstatus.tpl" perminfo=$contact.perminfo}}
{{if $contact.status}} diff --git a/view/tpl/connstatus.tpl b/view/tpl/connstatus.tpl new file mode 100644 index 000000000..667775f3a --- /dev/null +++ b/view/tpl/connstatus.tpl @@ -0,0 +1 @@ + diff --git a/view/tpl/contact_template.tpl b/view/tpl/contact_template.tpl index 2a2f996f4..40495b789 100755 --- a/view/tpl/contact_template.tpl +++ b/view/tpl/contact_template.tpl @@ -1,9 +1,7 @@
{{$contact.name}} - {{if $contact.oneway}} - - {{/if}} + {{include "connstatus.tpl" perminfo=$contact.perminfo}}
{{$contact.name}}
diff --git a/view/tpl/micropro_card.tpl b/view/tpl/micropro_card.tpl index a3c693dbd..1bdf92da1 100644 --- a/view/tpl/micropro_card.tpl +++ b/view/tpl/micropro_card.tpl @@ -1,5 +1,5 @@ - {{if $oneway}}{{/if}} + {{include "connstatus.tpl"}} {{$name}} {{$addr}}
{{$network}}
diff --git a/view/tpl/micropro_img.tpl b/view/tpl/micropro_img.tpl index 7464430b5..f6b12d53f 100755 --- a/view/tpl/micropro_img.tpl +++ b/view/tpl/micropro_img.tpl @@ -1 +1 @@ - +