aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-05-04 20:30:52 -0700
committerfriendica <info@friendica.com>2014-05-04 20:30:52 -0700
commit806f1f0fa134cc0168c9f86aaf10b8357fc19905 (patch)
tree86b38054156890f4139eaf1c3d53576a10542e2f /view
parent3ae67c517ed8791332fb1ace2a0908209a6d0e0d (diff)
downloadvolse-hubzilla-806f1f0fa134cc0168c9f86aaf10b8357fc19905.tar.gz
volse-hubzilla-806f1f0fa134cc0168c9f86aaf10b8357fc19905.tar.bz2
volse-hubzilla-806f1f0fa134cc0168c9f86aaf10b8357fc19905.zip
UI for deleting chatrooms
Diffstat (limited to 'view')
-rw-r--r--view/css/mod_chat.css15
-rw-r--r--view/css/widgets.css6
-rw-r--r--view/tpl/chat.tpl15
-rw-r--r--view/tpl/chatroomlist.tpl2
4 files changed, 31 insertions, 7 deletions
diff --git a/view/css/mod_chat.css b/view/css/mod_chat.css
index 7963fbbd6..58680baec 100644
--- a/view/css/mod_chat.css
+++ b/view/css/mod_chat.css
@@ -10,13 +10,20 @@
overflow-y: auto;
}
- #chatUsers {
+ #chatSide {
float: right;
- width: 120px;
+ width: 150px;
height: 100%;
- border: 1px solid #000;
}
-
+
+ #chatDrop {
+ margin-bottom: 20px;
+}
+
+ #chatUsers {
+ border: 1px solid #000;
+}
+
#chatBottomBar {
position: relative;
bottom: 0;
diff --git a/view/css/widgets.css b/view/css/widgets.css
index 7e6b16bb2..f42ec65ee 100644
--- a/view/css/widgets.css
+++ b/view/css/widgets.css
@@ -166,4 +166,10 @@ li:hover .group-edit-icon {
#photo-albums-upload-link {
margin-top: 10px;
+}
+
+/* Chatrooms */
+
+.chatroomlist td {
+ padding: 0 5px 0;
} \ No newline at end of file
diff --git a/view/tpl/chat.tpl b/view/tpl/chat.tpl
index acb7e5bef..9f95d2999 100644
--- a/view/tpl/chat.tpl
+++ b/view/tpl/chat.tpl
@@ -5,8 +5,19 @@
<div id="chatLineHolder"></div>
</div>
- <div id="chatUsers"></div>
-
+ <div id="chatSide">
+ {{if $is_owner}}
+ <div id="chatDrop">
+ <form id="chat-destroy" method="post" action="chat">
+ <input type="hidden" name="room_name" value="{{$room_name}}" />
+ <input type="hidden" name="action" value="drop" />
+ <input type="submit" name="submit" value="{{$drop}}" onclick="return confirmDelete();"/>
+ </form>
+ </div><br />
+ {{/if}}
+
+ <div id="chatUsers"></div><br />
+ </div>
<div class="clear"></div>
<div id="chatBottomBar">
<div class="tip"></div>
diff --git a/view/tpl/chatroomlist.tpl b/view/tpl/chatroomlist.tpl
index c26ba0c33..71fec8200 100644
--- a/view/tpl/chatroomlist.tpl
+++ b/view/tpl/chatroomlist.tpl
@@ -1,7 +1,7 @@
<div class="widget">
<h3>{{$header}}</h3>
{{if $items}}
-<table>
+<table class="chatroomlist">
{{foreach $items as $item}}
<tr><td align="left"><a href="{{$baseurl}}/chat/{{$nickname}}/{{$item.cr_id}}">{{$item.cr_name}}</a></td><td align="right">{{$item.cr_inroom}}</td></tr>
{{/foreach}}