Reformat awful buffer class logic to restore readability
This commit is contained in:
parent
b59aa31049
commit
cbc158af4c
1 changed files with 10 additions and 1 deletions
11
index.html
11
index.html
|
@ -271,7 +271,16 @@ $ openssl req -nodes -newkey rsa:4096 -keyout relay.pem -x509 -days 365 -out rel
|
|||
<input class="form-control favorite-font" type="text" id="bufferFilter" ng-model="search" ng-keydown="handleSearchBoxKey($event)" placeholder="Search" autocomplete="off">
|
||||
</form>
|
||||
</li>
|
||||
<li class="buffer" ng-class="{'active': buffer.active, 'unread': (buffer.notification || buffer.unread), 'highlight': search && search_highlight_key === key, 'indent': buffer.indent, 'channel': buffer.type === 'channel', 'channel_hash': buffer.prefix === '#', 'channel_plus': buffer.prefix === '+', 'channel_ampersand': buffer.prefix === '&', 'private': buffer.type === 'private'}" ng-repeat="(key, buffer) in (filteredBuffers = (getBuffers() | toArray:'withidx' | filter:{fullName:search} | filter:hasUnread | orderBy:predicate | getBufferQuickKeys:this))">
|
||||
<li class="buffer" ng-class="{'active': buffer.active,
|
||||
'unread': (buffer.notification || buffer.unread),
|
||||
'highlight': search && search_highlight_key === key,
|
||||
'indent': buffer.indent,
|
||||
'channel': buffer.type === 'channel',
|
||||
'channel_hash': buffer.prefix === '#',
|
||||
'channel_plus': buffer.prefix === '+',
|
||||
'channel_ampersand': buffer.prefix === '&',
|
||||
'private': buffer.type === 'private'}"
|
||||
ng-repeat="(key, buffer) in (filteredBuffers = (getBuffers() | toArray:'withidx' | filter:{fullName:search} | filter:hasUnread | orderBy:predicate | getBufferQuickKeys:this))">
|
||||
<a ng-click="setActiveBuffer(buffer.id)" title="{{ buffer.fullName }}" href="#">
|
||||
<span class="badge pull-right" ng-class="{'danger': buffer.notification}" ng-bind="buffer.notification || buffer.unread"></span>
|
||||
<span class="buffer-quick-key">{{ buffer.$quickKey }}</span>
|
||||
|
|
Loading…
Reference in a new issue