From 5462453bf2bde50166c68f90b08d24826dd07ba8 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Wed, 30 Mar 2016 14:31:55 +0200 Subject: some work on mod chat --- view/tpl/chat.tpl | 2 +- view/tpl/chatroom_new.tpl | 24 +++++++++++------------- view/tpl/chatroomlist.tpl | 16 ++++++++-------- view/tpl/chatrooms.tpl | 47 +++++++++++++++++++++++++++++++++++++---------- 4 files changed, 57 insertions(+), 32 deletions(-) (limited to 'view/tpl') diff --git a/view/tpl/chat.tpl b/view/tpl/chat.tpl index 18576fd56..5ea1ae22e 100644 --- a/view/tpl/chat.tpl +++ b/view/tpl/chat.tpl @@ -5,7 +5,7 @@
- +
{{/if}} diff --git a/view/tpl/chatroom_new.tpl b/view/tpl/chatroom_new.tpl index c64f21c97..8acff2ff5 100644 --- a/view/tpl/chatroom_new.tpl +++ b/view/tpl/chatroom_new.tpl @@ -1,14 +1,12 @@ -
-

{{$header}}

- -
-{{include file="field_input.tpl" field=$name}} -{{include file="field_input.tpl" field=$chat_expire}} - -{{$acl}} -
-
-
- -
+
+
+ {{include file="field_input.tpl" field=$name}} + {{include file="field_input.tpl" field=$chat_expire}} + {{$acl}} +
+ + +
+
+
diff --git a/view/tpl/chatroomlist.tpl b/view/tpl/chatroomlist.tpl index 71fec8200..ac0f7cf9b 100644 --- a/view/tpl/chatroomlist.tpl +++ b/view/tpl/chatroomlist.tpl @@ -1,11 +1,11 @@
-

{{$header}}

-{{if $items}} - -{{foreach $items as $item}} - -{{/foreach}} -
{{$item.cr_name}}{{$item.cr_inroom}}
-{{/if}} +

{{$header}}

+ {{if $items}} + + {{/if}}
diff --git a/view/tpl/chatrooms.tpl b/view/tpl/chatrooms.tpl index 570aef1c7..c7333efcf 100644 --- a/view/tpl/chatrooms.tpl +++ b/view/tpl/chatrooms.tpl @@ -1,12 +1,39 @@ -
-

{{$header}}

- -{{if $is_owner}} -

-{{$newroom}} -

-{{/if}} - -{{$rooms}} +
+
+ {{if $is_owner}} + + {{/if}} +

{{$header}}

+
+ {{if $is_owner}} + {{$chatroom_new}} + {{/if}} + {{if $rooms}} +
+ + + + + + + {{foreach $rooms as $room}} + + + + + + {{/foreach}} +
name
{{$room.cr_name}}{{$room.cr_inroom}}
+
+ {{else}} +
+ {{$norooms}} +
+ {{/if}}
-- cgit v1.2.3