aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-04-03 11:34:07 +0200
committerMario Vavti <mario@mariovavti.com>2016-04-03 11:34:07 +0200
commitb8d8be701382b72b3556ff9a3d67aabfc85223f5 (patch)
treea96829e583be982f9cc9bd92c066b8816ae1d294 /view
parente361ee9253d0a235a6b54fae1a1d6a25a6541342 (diff)
downloadvolse-hubzilla-b8d8be701382b72b3556ff9a3d67aabfc85223f5.tar.gz
volse-hubzilla-b8d8be701382b72b3556ff9a3d67aabfc85223f5.tar.bz2
volse-hubzilla-b8d8be701382b72b3556ff9a3d67aabfc85223f5.zip
show chat expiration time in overview and minor fixes
Diffstat (limited to 'view')
-rw-r--r--view/css/mod_chat.css9
-rw-r--r--view/tpl/chat.tpl12
-rw-r--r--view/tpl/chatrooms.tpl6
3 files changed, 17 insertions, 10 deletions
diff --git a/view/css/mod_chat.css b/view/css/mod_chat.css
index 830cc2f06..57aecd557 100644
--- a/view/css/mod_chat.css
+++ b/view/css/mod_chat.css
@@ -11,8 +11,13 @@
padding: 7px 3px 7px 10px;
}
-#chatrooms-index th:nth-child(3),
-#chatrooms-index td:nth-child(3){
+#chatrooms-index th:nth-child(2),
+#chatrooms-index td:nth-child(2){
+ text-align: right;
+}
+
+#chatrooms-index th:nth-child(4),
+#chatrooms-index td:nth-child(4){
padding: 7px 10px 7px 7px;
}
diff --git a/view/tpl/chat.tpl b/view/tpl/chat.tpl
index eb219f128..fbc00bf88 100644
--- a/view/tpl/chat.tpl
+++ b/view/tpl/chat.tpl
@@ -32,7 +32,7 @@
</div>
<div id="chat-submit-wrapper">
<div id="chat-submit" class="dropup pull-right">
- <button class="btn btn-default btn-sm dropdown-toggle" type="button" data-toggle="dropdown"><i class="icon-caret-down"></i></button>
+ <button class="btn btn-default btn-sm dropdown-toggle" type="button" data-toggle="dropdown"><i class="icon-caret-up"></i></button>
<button class="btn btn-primary btn-sm" type="submit" id="chat-submit" name="submit" value="{{$submit}}">{{$submit}}</button>
<ul class="dropdown-menu">
<li class="nav-item"><a class="nav-link" href="{{$baseurl}}/chatsvc?f=&room_id={{$room_id}}&status=online"><i class="icon-circle online"></i>&nbsp;{{$online}}</a></li>
@@ -68,21 +68,21 @@
</button-->
</div>
{{if $feature_encrypt}}
- <div class="btn-group hidden-sm hidden-xs">
+ <div class="btn-group hidden-xs">
<button id="chat-encrypt-wrapper" class="btn btn-default btn-sm" onclick="red_encrypt('{{$cipher}}', '#chatText', $('#chatText').val()); return false;">
<i id="chat-encrypt" class="icon-key jot-icons" title="{{$encrypt}}" ></i>
</button>
</div>
{{/if}}
- <div class="btn-group visible-xs visible-sm">
+ <div class="btn-group dropup visible-xs">
<button type="button" id="more-tools" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
- <i id="more-tools-icon" class="icon-caret-down jot-icons"></i>
+ <i id="more-tools-icon" class="icon-caret-up jot-icons"></i>
</button>
<ul class="dropdown-menu dropdown-menu-right" role="menu">
<li class="visible-xs"><a href="#" onclick="chatJotGetLink(); return false;" ><i class="icon-link"></i>&nbsp;{{$insert}}</a></li>
{{if $feature_encrypt}}
- <li class="divider visible-xs"></li>
- <li class="visible-sm visible-xs"><a href="#" onclick="red_encrypt('{{$cipher}}', '#chatText' ,$('#chatText').val()); return false;"><i class="icon-key"></i>&nbsp;{{$encrypt}}</a></li>
+ <li class="divider"></li>
+ <li class="visible-xs"><a href="#" onclick="red_encrypt('{{$cipher}}', '#chatText' ,$('#chatText').val()); return false;"><i class="icon-key"></i>&nbsp;{{$encrypt}}</a></li>
{{/if}}
</ul>
</div>
diff --git a/view/tpl/chatrooms.tpl b/view/tpl/chatrooms.tpl
index e3d0eb5b5..de8cdce7c 100644
--- a/view/tpl/chatrooms.tpl
+++ b/view/tpl/chatrooms.tpl
@@ -12,14 +12,16 @@
<div class="section-content-wrapper-np">
<table id="chatrooms-index">
<tr>
- <th width="98%">{{$name}}</th>
+ <th width="97%">{{$name}}</th>
+ <th width="1%">{{$expire}}</th>
<th width="1%" class="chatrooms-index-tool"></th>
<th width="1%"></th>
</tr>
{{foreach $rooms as $room}}
<tr class="chatroom-index-row">
<td><a href="{{$baseurl}}/chat/{{$nickname}}/{{$room.cr_id}}">{{$room.cr_name}}</a></td>
- <td class="chatrooms-index-tool dropdown">
+ <td>{{$room.cr_expire}}&nbsp;min</td>
+ <td class="chatrooms-index-tool dropdown pull-right">
{{if $room.allow_cid || $room.allow_gid || $room.deny_cid || $room.deny_gid}}
<i class="icon-lock lockview dropdown-toggle" data-toggle="dropdown" onclick="lockview('chatroom',{{$room.cr_id}});"></i>
<ul id="panel-{{$room.cr_id}}" class="lockview-panel dropdown-menu"></ul>