# HG changeset patch # User neko259 # Date 2015-10-26 15:21:37 # Node ID 679c05d2bba33669dcdf1dac74d5e9c18d60d945 # Parent 8669bd71818f682b9ea46887a5444a87a7fc467a Show bumplimit thread count in the tag page diff --git a/boards/locale/ru/LC_MESSAGES/django.mo b/boards/locale/ru/LC_MESSAGES/django.mo index fc8dce598425ae07942a06aab92599125213863e..f512f1dba9e9d8f0cfc8b35c50c24c967d65a3d3 GIT binary patch literal 9173 zc$~#pYiu0V6}~MLiW5Jeae|3St`hO=j7s@bYlfAk@wwnF^@e=5{JmD=x|b7yyL zuL)|acIBCG=H7G9`<#2nf4t`MZ!7%v;i|=zxlAbfB;KYf)_mjmm7^}ri}Yk>~} zHE;-c1Mpqo24D{OMPNmlQr7^N0KWjd1-JlMZ*T+fO5k=NiP{OgiueNYrz|s{0$xpe z0jq(}m5DyDmx-K{hTjj%M2|CO{&xmHFm!(bE(d;W_*P)iLf~RxC2%FM4!9Or1MFTP zd_CNj0l#71PvBM#d@Rx?}uM5PUPYnNm8oEjdT?M=jcoT5rLb1PZ zq0oB^h5sP%^S~nu#f}#i3g2Nv{~E9l__mo}P%iwd%Ei8=<-%uWx%j`qyx&zW`ZOE5 zZZrR=8SgQCf^y+|pj_k~E*Je?C>MVo2L`}5$|Y~Et`L6l3W@u=3R%|zyo};oA^z&B z5WYPXk}rMc{RhAsDUKClXRbo@`UCJ<;GZf){y)t46_w(@g_W}Y4&X-MJ(c3OCo6^i zo0X!^kxG$w0+;~)wo>%Frb_IosS^4X25+kpzU!(aPu2q$QNC7*osRa;&V#t<2 zz!kt>EfT#xStRi*s}_B)s}{fAR4sYGv0C!_G2mkIPqnOnsapIvRxS4YzFOpbWazJ2 zEPh?NSn?vdSp4NJmU!+5-bwy7?-v$J9lQ^`1Nb5EZeZ;arEaEtTO#@%05$<%St9=X z4RAH^Z%d?(uZQw5U2Ov14%}tlp98L>I9@CDI(@Cw=Lf)hsLp^f%7Yq_(_16!o~jYM zkJX6ZPt}ON@79Q)rfMX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Ant(bR1EnwY(}m#ZAbD!?iE9#`n{_lN|v8vWTco zo9yHbN10mWTrT}>Jm2P3`jlQ;vM&5XiX_smNed=O04y_A~OMD*FE(d8tawMMQ w@BgRSW7LN@m^hH_Ca>(K9w int: + def get_thread_count(self, archived=None, bumpable=None) -> int: threads = self.get_threads() if archived is not None: threads = threads.filter(archived=archived) + if bumpable is not None: + threads = threads.filter(bumpable=bumpable) return threads.count() def get_active_thread_count(self) -> int: - return self.get_thread_count(archived=False) + return self.get_thread_count(archived=False, bumpable=True) + + def get_bumplimit_thread_count(self) -> int: + return self.get_thread_count(archived=False, bumpable=False) def get_archived_thread_count(self) -> int: return self.get_thread_count(archived=True) diff --git a/boards/templates/boards/all_threads.html b/boards/templates/boards/all_threads.html --- a/boards/templates/boards/all_threads.html +++ b/boards/templates/boards/all_threads.html @@ -74,6 +74,7 @@ {% endif %}

{% blocktrans count count=tag.get_active_thread_count %}{{ count }} active thread{% plural %}active threads{% endblocktrans %}, + {% blocktrans count count=tag.get_bumplimit_thread_count %}{{ count }} thread in bumplimit{% plural %} threads in bumplimit{% endblocktrans %}, {% blocktrans count count=tag.get_archived_thread_count %}{{ count }} archived thread{% plural %}archived threads{% endblocktrans %}, {% blocktrans count count=tag.get_post_count %}{{ count }} message{% plural %}messages{% endblocktrans %}.