</div>
</section>
+ <section class="section">
+ <div class="container">
+ {% module DBLSubmitReport(list=list) %}
+ </div>
+ </section>
+
<section class="section">
<div class="container">
<div class="buttons are-small is-centered">
<div class="notification">
<div class="columns is-vcentered">
<div class="column">
- {% if blocked %}
- <strong>
- {{ _("Do you think this domain should not be blocked?") }}
- </strong>
+ {% if name %}
+ {% if blocked %}
+ <strong>
+ {{ _("Do you think this domain should not be blocked?") }}
+ </strong>
+ {% else %}
+ <strong>
+ {{ _("Do you think this domain should be blocked?") }}
+ </strong>
+ {% end %}
{% else %}
<strong>
- {{ _("Do you think this domain should be blocked?") }}
+ Do you think something should be blocked?
</strong>
{% end %}
<div class="column is-narrow">
<a class="button is-primary is-small is-fullwidth"
href="/dbl/report?{{ urllib.parse.urlencode(args) }}">
- {{ _("Report %s") % name }}
+ {% if name %}
+ {{ _("Report %s") % name }}
+ {% else %}
+ {{ _("Submit A Report") }}
+ {% end %}
</a>
</div>
</div>
class SubmitReportModule(ui_modules.UIModule):
- def render(self, name, blocked=False, list=None):
+ def render(self, name=None, blocked=False, list=None):
args = {
- "name" : name,
"block" : not blocked,
}
+ if name:
+ args |= {
+ "name" : name,
+ }
+
if list:
args |= {
"list" : list.slug,