Merge pull request #845 from Vaesper/repeated-prefix
Implement repeated-prefix, Fix #844
This commit is contained in:
commit
e5311084e1
2 changed files with 8 additions and 2 deletions
|
@ -304,7 +304,7 @@ $ openssl req -nodes -newkey rsa:4096 -keyout relay.pem -x509 -days 365 -out rel
|
||||||
<span class="cof-chat_time cob-chat_time coa-chat_time" ng-bind-html="::bufferline.formattedTime"></span>
|
<span class="cof-chat_time cob-chat_time coa-chat_time" ng-bind-html="::bufferline.formattedTime"></span>
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
<td class="prefix"><a ng-click="addMention(bufferline.prefix)"><span class="hidden-bracket"><</span><span ng-repeat="part in ::bufferline.prefix" ng-class="::part.classes" ng-bind="::part.text|prefixlimit:25"></span><span class="hidden-bracket">></span></a></td><!--
|
<td class="prefix"><span ng-class="::{'repeated-prefix': bufferline.prefixtext==bufferlines[$index-1].prefixtext}"><a ng-click="addMention(bufferline.prefix)"><span class="hidden-bracket"><</span><span ng-repeat="part in ::bufferline.prefix" ng-class="::part.classes" ng-bind="::part.text|prefixlimit:25"></span><span class="hidden-bracket">></span></a></span></td><!--
|
||||||
--><td class="message"><!--
|
--><td class="message"><!--
|
||||||
--><div ng-repeat="metadata in ::bufferline.metadata" plugin data="::metadata"></div><!--
|
--><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 | linky:'_blank' | DOMfilter:'irclinky' | DOMfilter:'emojify':settings.enableJSEmoji | DOMfilter:'inlinecolour' | DOMfilter:'latexmath':('.line-' + part.$$hashKey.replace(':','_')):settings.enableMathjax"></span>
|
--><span ng-repeat="part in ::bufferline.content" class="text" ng-class="::part.classes.concat(['line-' + part.$$hashKey.replace(':','_')])" ng-bind-html="::part.text | linky:'_blank' | DOMfilter:'irclinky' | DOMfilter:'emojify':settings.enableJSEmoji | DOMfilter:'inlinecolour' | DOMfilter:'latexmath':('.line-' + part.$$hashKey.replace(':','_')):settings.enableMathjax"></span>
|
||||||
|
|
|
@ -365,6 +365,11 @@ models.service('models', ['$rootScope', '$filter', 'bufferResume', function($roo
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var prefixtext = "";
|
||||||
|
for (var pti = 0; pti < prefix.length; ++pti) {
|
||||||
|
prefixtext += prefix[pti].text;
|
||||||
|
}
|
||||||
|
|
||||||
var rtext = "";
|
var rtext = "";
|
||||||
for (var i = 0; i < content.length; ++i) {
|
for (var i = 0; i < content.length; ++i) {
|
||||||
rtext += content[i].text;
|
rtext += content[i].text;
|
||||||
|
@ -380,6 +385,7 @@ models.service('models', ['$rootScope', '$filter', 'bufferResume', function($roo
|
||||||
tags: tags_array,
|
tags: tags_array,
|
||||||
highlight: highlight,
|
highlight: highlight,
|
||||||
displayed: displayed,
|
displayed: displayed,
|
||||||
|
prefixtext: prefixtext,
|
||||||
text: rtext
|
text: rtext
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue