mirror of
https://github.com/redlib-org/redlib.git
synced 2025-05-14 05:52:53 +00:00
Add option to hide score
Add the option to hide score for posts and comments in preferences. There is still however a blank margin where the score is supposed to be.
This commit is contained in:
parent
e25622dac2
commit
df3d894947
12 changed files with 36 additions and 5 deletions
|
@ -82,8 +82,10 @@
|
|||
{% endif %}
|
||||
<a href="{{ post.permalink }}">{{ post.title }}</a>{% if post.flags.nsfw %} <small class="nsfw">NSFW</small>{% endif %}
|
||||
</h2>
|
||||
|
||||
|
||||
{% if prefs.hide_score != "on" %}
|
||||
<div class="post_score" title="{{ post.score.1 }}">{{ post.score.0 }}<span class="label"> Upvotes</span></div>
|
||||
{% endif %}
|
||||
<div class="post_footer">
|
||||
<a href="{{ post.permalink }}" class="post_comments" title="{{ post.comments.1 }} comments">{{ post.comments.0 }} comments</a>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue