diff --git a/style/base/base.scss b/style/base/base.scss index 0304e892f0..192d7cb830 100644 --- a/style/base/base.scss +++ b/style/base/base.scss @@ -129,6 +129,16 @@ body { } } +.btn-report { + $base-color: #aaa; + background-color: $base-color; + color: #1a171b; + &:hover { + background-color: #f00; + color: #fff; + } +} + input.amount { min-width: 5em; max-width: 8em; diff --git a/templates/profile.html b/templates/profile.html index 062c98b312..d7295db1d0 100644 --- a/templates/profile.html +++ b/templates/profile.html @@ -97,6 +97,9 @@

{{ participant.username }}

{{ _("Donate") }} % endif + + {{ _("Report") }} + diff --git a/www/%username/report.spt b/www/%username/report.spt new file mode 100644 index 0000000000..a52865f5c6 --- /dev/null +++ b/www/%username/report.spt @@ -0,0 +1,114 @@ +from liberapay.exceptions import UserDoesntAcceptTips +from liberapay.utils import get_participant + +[---] +participant = get_participant(state, restrict=False) +if participant.goal == -1: + raise response.error(403, UserDoesntAcceptTips(participant.username)) + +full_title = _("Report {0}", participant.username) + +[---] text/html +% extends "templates/profile-base.html" + +% from 'templates/elsewhere.html' import account_elsewhere with context + +% block head_early +{{ super() }} + +% endblock + +{% block heading %}{% endblock %} + +% block content +
+
+

{{ _("Report {0}", ('{0}'|safe).format(participant.username)) }}

+ + % if not participant.hide_receiving + % set goal, receiving = participant.goal, participant.receiving + % if goal + % if receiving +

{{ _( + "{0} currently receives {1} per week, they need your help to reach " + "their funding goal ({2} per week)." + , participant.username, receiving, goal + ) }}

+ % else +

{{ _( + "{0}'s goal is to receive {1} per week." + , participant.username, goal + ) }} {{ _("Be the first to contribute!") }}

+ % endif + % else +

{{ _( + "{0} currently receives {1} per week." + , participant.username, receiving + ) }}

+ % endif + % endif + +
+ + % set e_accounts = participant.get_accounts_elsewhere() + % if e_accounts +

{{ _("Recipient Identity") }}

+

{{ _( + "We have confirmed through an automated verification process that " + "{0} has control of the following accounts on other platforms:", + participant.username + ) }}

+ % for platform in website.platforms if platform.name in e_accounts + {{ account_elsewhere(platform, e_accounts, None) }} + % endfor +
+ % endif + + % block form +

{{ _( + "Please describe why you want to report this account:" + ) }}

+ +
+ + +
+ +

{{ _("Markdown supported.") }} + {{ _("What is Markdown?") }} +

+
+ + + % endblock + +

{{ _("Frequently Asked Questions") }}

+ +

{{ _("What happens when I report a user?") }}

+

{{ _( + "The profile will be reviewed by a moderator. " + ) }}

+ +

{{ _("Who are the moderators?") }}

+

{{ _( + "There is ten moderators who have been elected by the ten most funded projects on Liberapay. " + "This ensure that Liberapay moderation is made by independent people concerned by the plateform safety. " + ) }}

+ +

{{ _("What is the moderating process?") }}

+

{{ _( + "Once at least half of the moderators confirm that the account is suspicious," + "its account is closed and it can not receive donation anymore. " + "All donations to the account are then cancelled." + ) }}

+ +
+
+% endblock