New setting for hiding timestamps

This commit is contained in:
Tor Hveem 2013-10-17 10:50:29 +02:00
parent c77746695f
commit 3a52840111
2 changed files with 14 additions and 1 deletions

View File

@ -149,6 +149,16 @@
</div> </div>
</form> </form>
</li> </li>
<li class="">
<form class="form-inline" role="form">
<div class="checkbox">
<label>
<input type="checkbox" ng-model="notimestamp">
Hide timestamps
</label>
</div>
</form>
</li>
</ul> </ul>
</div> </div>
<a ng-click="disconnect()"> <a ng-click="disconnect()">
@ -176,7 +186,7 @@
<table> <table>
<tbody> <tbody>
<tr class="bufferline" ng-repeat-start="bufferline in activeBuffer().lines"> <tr class="bufferline" ng-repeat-start="bufferline in activeBuffer().lines">
<td class="time"> <td ng-hide="notimestamp" class="time">
<span class="date text-muted"> <span class="date text-muted">
{{ bufferline.date | date:'HH:mm' }} {{ bufferline.date | date:'HH:mm' }}
</span> </span>

View File

@ -332,7 +332,10 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
// $scope.password = ""; // $scope.password = "";
// //
// Save setting for displaying only buffers with unread messages
$store.bind($scope, "onlyUnread", false); $store.bind($scope, "onlyUnread", false);
// Save setting for not showing timestamp
$store.bind($scope, "notimestamp", false);
$scope.setActiveBuffer = function(key) { $scope.setActiveBuffer = function(key) {