Use the wiki template for the groups graph page

This commit is contained in:
Martin Pépin 2020-01-06 19:37:47 +01:00
parent 6af61b4c65
commit 5ed578ff9f
No known key found for this signature in database
GPG key ID: E7520278B1774448
2 changed files with 17 additions and 23 deletions

View file

@ -1,12 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Gestion de groupes</title>
{% block extra_head %}{% endblock %}
</head>
<body>
{% block content %}{% endblock %}
</body>
</html>

View file

@ -1,18 +1,24 @@
{% extends "wiki_groups/base.html" %}
{% extends "wiki/base.html" %}
{% load staticfiles %}
{% block extra_head %}
{% block wiki_site_title %}Groupes - WikiENS{% endblock %}
{% block wiki_contents %}
<h2>Graphe des groupes du wiki</h2>
<hr />
<div id="svg-graph"></div>
<hr />
<p>
Les flèches représentent l'inclusion : <code>A -&gt; B</code> signifie que
le groupe <code>A</code> est contenu dans le groupe <code>B</code>.
</p>
<script src="{% static 'wiki_groups/js/vendor/viz.js' %}"></script>
<script src="{% static 'wiki_groups/js/vendor/lite.render.js' %}"></script>
{% endblock %}
{% block content %}
<section>
<h2>Graphe des groupes</h2>
<div id="svg-graph"></div>
</section>
<script>
var viz = new Viz();