Rename buffer variable showTimes
This commit is contained in:
parent
cf2e8b8ef2
commit
3bd2367164
@ -407,12 +407,12 @@ npm run build-electron-{windows, darwin, linux}</pre>
|
||||
</tbody>
|
||||
<tbody ng-repeat="bufferline in bufferlines">
|
||||
<tr class="bufferline">
|
||||
<td class="time" ng-show="activeBuffer().showTime">
|
||||
<td class="time" ng-show="activeBuffer().showBufferLineTimes">
|
||||
<span class="date" ng-class="::{'repeated-time': bufferline.shortTime==bufferlines[$index-1].shortTime}">
|
||||
<span class="cof-chat_time cob-chat_time coa-chat_time" ng-bind-html="::bufferline.formattedTime"></span>
|
||||
</span>
|
||||
</td>
|
||||
<td class="prefix" ng-show="activeBuffer().showTime"><span ng-class="::{'repeated-prefix': bufferline.prefixtext==bufferlines[$index-1].prefixtext}"><a ng-click="addMention(bufferline)"><span class="hidden-bracket" ng-if="::(bufferline.showHiddenBrackets)"><</span><span ng-repeat="part in ::bufferline.prefix" ng-class="::part.classes" ng-bind="::part.text|prefixlimit:25"></span><span class="hidden-bracket" ng-if="::(bufferline.showHiddenBrackets)">></span></a></span></td><!--
|
||||
<td class="prefix" ng-show="activeBuffer().showBufferLineTimes"><span ng-class="::{'repeated-prefix': bufferline.prefixtext==bufferlines[$index-1].prefixtext}"><a ng-click="addMention(bufferline)"><span class="hidden-bracket" ng-if="::(bufferline.showHiddenBrackets)"><</span><span ng-repeat="part in ::bufferline.prefix" ng-class="::part.classes" ng-bind="::part.text|prefixlimit:25"></span><span class="hidden-bracket" ng-if="::(bufferline.showHiddenBrackets)">></span></a></span></td><!--
|
||||
--><td class="message"><!--
|
||||
--><div ng-repeat="metadata in ::bufferline.metadata" plugin data="::metadata"></div><!--
|
||||
--><span ng-repeat="part in ::bufferline.content" class="text" ng-class="::part.classes.concat(['line-' + part.$$hashKey.replace(':','_')])" ng-bind-html="::part.text | conditionalLinkify:part.classes.includes('cof-chat_host') | DOMfilter:'codify' | DOMfilter:'irclinky' | DOMfilter:'emojify':settings.enableJSEmoji | DOMfilter:'inlinecolour' | DOMfilter:'latexmath':('.line-' + part.$$hashKey.replace(':','_')):settings.enableMathjax"></span>
|
||||
|
@ -90,7 +90,7 @@ models.service('models', ['$rootScope', '$filter', 'bufferResume', function($roo
|
||||
// There are two kinds of types: bufferType (free vs formatted) and
|
||||
// the kind of type that distinguishes queries from channels etc
|
||||
var bufferType = message.type;
|
||||
|
||||
|
||||
// If type is undefined set it as other to avoid later errors
|
||||
var type = message.local_variables.type;
|
||||
if (!type) {
|
||||
@ -105,7 +105,7 @@ models.service('models', ['$rootScope', '$filter', 'bufferResume', function($roo
|
||||
var pinned = message.local_variables.pinned === "true";
|
||||
|
||||
//hide timestamps for certain buffer types
|
||||
var showTime = type && type !== 'relay';
|
||||
var showBufferLineTimes = type && type !== 'relay';
|
||||
|
||||
// Server buffers have this "irc.server.freenode" naming schema, which
|
||||
// messes the sorting up. We need it to be "irc.freenode" instead.
|
||||
@ -374,7 +374,7 @@ models.service('models', ['$rootScope', '$filter', 'bufferResume', function($roo
|
||||
getHistoryDown: getHistoryDown,
|
||||
isNicklistEmpty: isNicklistEmpty,
|
||||
nicklistRequested: nicklistRequested,
|
||||
showTime: showTime,
|
||||
showBufferLineTimes: showBufferLineTimes,
|
||||
pinned: pinned,
|
||||
queryNicklist: queryNicklist,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user