forked from rDrama/rDrama
hide braincels too
parent
c3ae81a7f6
commit
5d39c9dfbb
|
@ -173,7 +173,7 @@ class User(Base):
|
||||||
@property
|
@property
|
||||||
@lazy
|
@lazy
|
||||||
def all_blocks(self):
|
def all_blocks(self):
|
||||||
return ['smuggies'] + [x[0] for x in g.db.query(SubBlock.sub).filter_by(user_id=self.id).all()]
|
return ['smuggies','braincels'] + [x[0] for x in g.db.query(SubBlock.sub).filter_by(user_id=self.id).all()]
|
||||||
|
|
||||||
@lazy
|
@lazy
|
||||||
def blocks(self, sub):
|
def blocks(self, sub):
|
||||||
|
|
|
@ -20,11 +20,11 @@
|
||||||
|
|
||||||
{% for sub, count in subs %}
|
{% for sub, count in subs %}
|
||||||
<tr>
|
<tr>
|
||||||
<td {% if sub.name == 'smuggies' %}class="text-danger"{% endif %}>{{loop.index}}</td>
|
<td {% if sub.name in ['smuggies','braincels'] %}class="text-danger"{% endif %}>{{loop.index}}</td>
|
||||||
<td><a href="/h/{{sub.name}}" {% if sub.name == 'smuggies' %}class="text-danger"{% endif %}>{{sub.name}}</a></td>
|
<td><a href="/h/{{sub.name}}" {% if sub.name in ['smuggies','braincels'] %}class="text-danger"{% endif %}>{{sub.name}}</a></td>
|
||||||
<td><a href="/h/{{sub.name}}" {% if sub.name == 'smuggies' %}class="text-danger"{% endif %}>{{count}}</a></td>
|
<td><a href="/h/{{sub.name}}" {% if sub.name in ['smuggies','braincels'] %}class="text-danger"{% endif %}>{{count}}</a></td>
|
||||||
<td><a href="/h/{{sub.name}}/followers" {% if sub.name == 'smuggies' %}class="text-danger"{% endif %}>{{sub.follow_num}}</a></td>
|
<td><a href="/h/{{sub.name}}/followers" {% if sub.name in ['smuggies','braincels'] %}class="text-danger"{% endif %}>{{sub.follow_num}}</a></td>
|
||||||
<td><a href="/h/{{sub.name}}/blockers" {% if sub.name == 'smuggies' %}class="text-danger"{% endif %}>{{sub.block_num}}</a></td>
|
<td><a href="/h/{{sub.name}}/blockers" {% if sub.name in ['smuggies','braincels'] %}class="text-danger"{% endif %}>{{sub.block_num}}</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
|
|
Loading…
Reference in New Issue