diff --git a/web/web/blueprints/attacks/__init__.py b/web/web/blueprints/attacks/__init__.py
index a6cc1d2..4fe3931 100644
--- a/web/web/blueprints/attacks/__init__.py
+++ b/web/web/blueprints/attacks/__init__.py
@@ -86,6 +86,10 @@ def download(attack_id):
def create():
return render_template('attacks/create.html')
+@attacks.route('/table')
+def table():
+ return render_template('attacks/attacks_table.html', attacks=Attack.query.all())
+
@attacks.errorhandler(NotFound)
def handle_not_found_error(e):
if (request.referrer is None):
diff --git a/web/web/blueprints/attacks/templates/attacks/attacks_table.html b/web/web/blueprints/attacks/templates/attacks/attacks_table.html
new file mode 100644
index 0000000..345b170
--- /dev/null
+++ b/web/web/blueprints/attacks/templates/attacks/attacks_table.html
@@ -0,0 +1,29 @@
+
+
+
+ | Name |
+ Created By |
+ Created At |
+ Teams currently passing |
+
+
+
+ {% for attack in attacks %}
+
+ | {{ attack.name }} |
+ {{ attack.team.name if attack.team else "" }} |
+ {{ attack.created_at | formatdatetime }} |
+ {{ attack.passing | length }} |
+
+ {% endfor %}
+
+
+
\ No newline at end of file
diff --git a/web/web/blueprints/attacks/templates/attacks/index.html b/web/web/blueprints/attacks/templates/attacks/index.html
index 79ebb68..7a602b3 100644
--- a/web/web/blueprints/attacks/templates/attacks/index.html
+++ b/web/web/blueprints/attacks/templates/attacks/index.html
@@ -3,36 +3,42 @@
{% block title %}Attacks{% endblock %}
{% block content %}
-
+
+
+
+
+
Submit an attack
-
-
-
- | Name |
- Created By |
- Created At |
- Teams currently passing |
-
-
-
- {% for attack in attacks %}
-
- | {{ attack.name }} |
- {{ attack.team.name if attack.team else "" }} |
- {{ attack.created_at | formatdatetime }} |
- {{ attack.passing | length }} |
-
- {% endfor %}
-
-
-
+
+ {% include "attacks/attacks_table.html" %}
+
+{% endblock %}
+
+{% block scripts %}
+
{% endblock %}