Skip to content

Commit 95cb531

Browse files
committed
Created moderation html pages
1 parent ce79d3c commit 95cb531

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed

moderation/templates/moderation/moderation_home.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
{% block content %}
44
<div>
5-
<p>Go to relvant section</p>
5+
<h2 class="text-center mt-3">Go to relvant section</h2>
66

7-
<div>
8-
<a href="#">Flagged Questions</a>
9-
<a href="#">Flagged Answers</a>
10-
<a href="#">Flagged Question Comments</a>
11-
<a href="#">Flagged Answer Comments</a>
7+
<div class="d-flex flex-column align-items-center">
8+
<a class="mt-5" href="{% url 'moderation:reported_questions' %}">Flagged Questions</a>
9+
<a class="mt-5" href="#">Flagged Answers</a>
10+
<a class="mt-5" href="#">Flagged Question Comments</a>
11+
<a class="mt-5" href="#">Flagged Answer Comments</a>
1212
</div>
1313
</div>
1414
{% endblock %}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{% extends 'main/base.html' %}
2+
3+
{% block content %}
4+
5+
<div style="width: 800px; margin: auto;" class="d-flex flex-column mt-5">
6+
{% for report in reported_question_list %}
7+
<div class="p-4 h4">
8+
<a href="{% url 'main:question_details' report.question.id %}">{{ report.question }} -- reports: {{ report.number_of_reports }} </a>
9+
</div>
10+
{% endfor %}
11+
</div>
12+
13+
{% endblock content %}

0 commit comments

Comments
 (0)