blob: 2894f90de0a99fe1fc3b5e0256785b946ce584cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{% extends "base.html" %}
{% block title %}The War on Spam{% endblock %}
{% block content %}
{% include "messages.html" %}
<h2>Do these smell like SPAM to you?</h2>
{% set keys = (
('matches', 'Needs more Creativity'),
('urls', 'HyperLink OverFlow'),
('numbers', 'Overwhelmingly Productive'),
) %}
{% set trans = {
'urls': 'containing urls',
'numbers': 'creating too many reviews',
'matches': 'duplicate content',
} %}
{% for key, title in keys %}
{% if buckets[key] %}
<div>
<h3>{{ title }}</h3>
{% for review in buckets[key] %}
<form method="post" action="" style="margin-bottom: 2em">
{{ csrf() }}
{% with addon = review.addon %}
{% include "reviews/review.html" %}
{% endwith %}
<p style="margin-bottom: .4em">
For <a href="{{ review.addon.get_url_path() }}">{{ review.addon.name }}</a>
— flagged for {{ trans[key] }}.
</p>
<input type="hidden" name="review" value="{{ review.id }}">
<input type="hidden" name="addon" value="{{ review.addon_id }}">
<input type="submit" name="del_user" value="Delete User">
<input type="submit" name="del_review" value="Delete Review">
<input type="submit" name="ok" value="OK With Me">
</form>
{% endfor %}
</div>
{% endif %}
{% endfor %}
<p>These are the reasons we're flagging: <code>{{ buckets.keys()|pprint }}</code></p>
{% endblock %}
|