From 9a3a2819c11cccdbce72adbe611f45e559e36655 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 26 Mar 2014 17:05:45 -0700 Subject: add admin/channels --- view/tpl/admin_channels.tpl | 50 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100755 view/tpl/admin_channels.tpl (limited to 'view/tpl/admin_channels.tpl') diff --git a/view/tpl/admin_channels.tpl b/view/tpl/admin_channels.tpl new file mode 100755 index 000000000..2ae2a72d6 --- /dev/null +++ b/view/tpl/admin_channels.tpl @@ -0,0 +1,50 @@ + +
+

{{$title}} - {{$page}}

+ +
+ + +

{{$h_users}}

+ {{if $users}} + + + + {{foreach $th_users as $th}}{{/foreach}} + + + + + + {{foreach $users as $u}} + + + + + + + + {{/foreach}} + +
{{$th}}
{{$u.channel_id}}{{$u.channel_name}}{{$u.channel_address}} + + +
+ +
+ {{else}} + NO USERS?!? + {{/if}} +
+
-- cgit v1.2.3 From 9f54a8f96b7664c82ab9228608970a7ce6bd41a9 Mon Sep 17 00:00:00 2001 From: sasiflo Date: Sun, 6 Apr 2014 00:34:52 +0200 Subject: Hope I have repaired the channel admin page. Channel blocking and deleting was copied from user actions. This was not done to an end. Hope what I do is enough to enable channel blocking and deleting the correct way. On deletion all entities that belong to the channel are deleted. But the channel itself is just marked as deleted. Do not really understand why it is done this way. --- view/tpl/admin_channels.tpl | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'view/tpl/admin_channels.tpl') diff --git a/view/tpl/admin_channels.tpl b/view/tpl/admin_channels.tpl index 2ae2a72d6..d8f5f626f 100755 --- a/view/tpl/admin_channels.tpl +++ b/view/tpl/admin_channels.tpl @@ -16,35 +16,35 @@
-

{{$h_users}}

- {{if $users}} +

{{$h_channels}}

+ {{if $channels}} - {{foreach $th_users as $th}}{{/foreach}} + {{foreach $th_channels as $th}}{{/foreach}} - {{foreach $users as $u}} + {{foreach $channels as $c}} - - - - + + + + {{/foreach}}
{{$th}}{{$th}}
{{$u.channel_id}}{{$u.channel_name}}{{$u.channel_address}}{{$c.channel_id}}{{$c.channel_name}}{{$c.channel_address}} - - + +
- -
+ +
{{else}} - NO USERS?!? + NO CHANNELS?!? {{/if}}
-- cgit v1.2.3