From 1df1c15e48821f1339579e119826c78df97289c6 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Wed, 30 Sep 2015 21:59:33 -0700 Subject: issue #61 - provide un-useable icons as placeholders for location setting options on deleted hublocs --- view/tpl/locmanage.tpl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'view/tpl/locmanage.tpl') diff --git a/view/tpl/locmanage.tpl b/view/tpl/locmanage.tpl index e0232547f..0620e2dcb 100644 --- a/view/tpl/locmanage.tpl +++ b/view/tpl/locmanage.tpl @@ -15,11 +15,15 @@ function drophub(id) { {{if $hub.deleted}}{{/if}} {{$hub.hubloc_url}} ({{$hub.hubloc_addr}}){{if $hub.deleted}}{{/if}} - +{{if ! $hub.deleted}} + {{if $hub.primary}}{{else}}{{/if}} {{if ! $hub.deleted}}{{/if}} +{{else}} + +{{/if}} {{/foreach}} -- cgit v1.2.3 From e7131bc8f8cbb264c0416dd1664721f50023ce73 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Wed, 30 Sep 2015 22:10:26 -0700 Subject: this is an even better fix for issue #61 --- view/tpl/locmanage.tpl | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'view/tpl/locmanage.tpl') diff --git a/view/tpl/locmanage.tpl b/view/tpl/locmanage.tpl index 0620e2dcb..4ace457ed 100644 --- a/view/tpl/locmanage.tpl +++ b/view/tpl/locmanage.tpl @@ -12,19 +12,15 @@ function drophub(id) { {{foreach $hubs as $hub}} +{{if ! $hub.deleted }} - -{{if ! $hub.deleted}} +{{$hub.hubloc_url}} ({{$hub.hubloc_addr}}) - -{{else}} - -{{/if}} + +{{/if}} {{/foreach}}
{{$loc}}{{$mkprm}}{{$drop}}
-{{if $hub.deleted}}{{/if}} -{{$hub.hubloc_url}} ({{$hub.hubloc_addr}}){{if $hub.deleted}}{{/if}} {{if $hub.primary}}{{else}}{{/if}} {{if ! $hub.deleted}}{{/if}}
-- cgit v1.2.3