mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
Indicate Bot Accounts in UI
This commit is contained in:
parent
0210adafa5
commit
4a25df2de7
7 changed files with 36 additions and 0 deletions
|
@ -282,6 +282,14 @@ h1 {
|
|||
}
|
||||
}
|
||||
|
||||
.fe-bot-account {
|
||||
position: relative;
|
||||
top: 1px;
|
||||
&:before {
|
||||
content: "\e94d";
|
||||
}
|
||||
}
|
||||
|
||||
.fe-video {
|
||||
position: relative;
|
||||
top: 2px;
|
||||
|
|
|
@ -305,6 +305,14 @@ h1 .fe-bell, h1 .fe-no-bell {
|
|||
content: "\e986";
|
||||
}
|
||||
|
||||
.fe-bot-account {
|
||||
position: relative;
|
||||
top: 1px;
|
||||
}
|
||||
.fe-bot-account:before {
|
||||
content: "\e94d";
|
||||
}
|
||||
|
||||
.fe-video {
|
||||
position: relative;
|
||||
top: 2px;
|
||||
|
|
|
@ -304,6 +304,14 @@ h1 .fe-bell, h1 .fe-no-bell {
|
|||
content: "\e986";
|
||||
}
|
||||
|
||||
.fe-bot-account {
|
||||
position: relative;
|
||||
top: 1px;
|
||||
}
|
||||
.fe-bot-account:before {
|
||||
content: "\e94d";
|
||||
}
|
||||
|
||||
.fe-video {
|
||||
position: relative;
|
||||
top: 2px;
|
||||
|
|
|
@ -11,6 +11,9 @@
|
|||
{% if user.created_recently() %}
|
||||
<span class="fe fe-new-account" title="New account"> </span>
|
||||
{% endif %}
|
||||
{% if user.bot %}
|
||||
<span class="fe fe-bot-account" title="Bot account"> </span>
|
||||
{% endif %}
|
||||
{% if user.reputation < -10 %}
|
||||
<span class="fe fe-warning red" title="Very low reputation. Beware."> </span>
|
||||
<span class="fe fe-warning red" title="Very low reputation. Beware!"> </span>
|
||||
|
|
|
@ -29,6 +29,9 @@
|
|||
{% if comment['comment'].author.created_recently() %}
|
||||
<span class="fe fe-new-account small" title="New account"> </span>
|
||||
{% endif %}
|
||||
{% if comment['comment'].author.bot %}
|
||||
<span class="fe fe-bot-account small" title="Bot account"> </span>
|
||||
{% endif %}
|
||||
{% if comment['comment'].author.id != current_user.id %}
|
||||
{% if comment['comment'].author.reputation < -10 %}
|
||||
<span class="fe fe-warning red" title="Very low reputation. Beware."> </span>
|
||||
|
|
|
@ -90,6 +90,9 @@
|
|||
{% if comment['comment'].author.created_recently() %}
|
||||
<span class="fe fe-new-account small" title="New account"> </span>
|
||||
{% endif %}
|
||||
{% if comment['comment'].author.bot %}
|
||||
<span class="fe fe-bot-account small" title="Bot account"> </span>
|
||||
{% endif %}
|
||||
{% if comment['comment'].author.id != current_user.id %}
|
||||
{% if comment['comment'].author.reputation < -10 %}
|
||||
<span class="fe fe-warning red" title="Very low reputation. Beware."> </span>
|
||||
|
|
|
@ -57,6 +57,9 @@
|
|||
</div>
|
||||
{% endif %}
|
||||
<p class="small">{{ _('Joined') }}: {{ moment(user.created).fromNow(refresh=True) }}<br />
|
||||
{% if user.bot %}
|
||||
{{ _('Bot Account') }}<br />
|
||||
{% endif %}
|
||||
{{ _('Attitude') }}: <span title="{{ _('Ratio of upvotes cast to downvotes cast. Higher is more positive.') }}">{{ (user.attitude * 100) | round | int }}%</span></p>
|
||||
{{ user.about_html|safe }}
|
||||
{% if posts %}
|
||||
|
|
Loading…
Reference in a new issue