aboutsummaryrefslogtreecommitdiff
path: root/apps/dreki_web/templates/world_graph_dot.dtl
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dreki_web/templates/world_graph_dot.dtl')
-rw-r--r--apps/dreki_web/templates/world_graph_dot.dtl11
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/dreki_web/templates/world_graph_dot.dtl b/apps/dreki_web/templates/world_graph_dot.dtl
new file mode 100644
index 0000000..4a0fde0
--- /dev/null
+++ b/apps/dreki_web/templates/world_graph_dot.dtl
@@ -0,0 +1,11 @@
+graph {
+ class="world-graph dark:bg-gray-800 bg-gray-200 text-white dark:text-gray-200"
+ bgcolor="transparent"
+{% for vertice in vertices %}
+ "{{vertice.node}}" [label="{{vertice.name}}"] [class="world-graph-vertice-{{ vertice.type }}"] [color=white] [style=filled] [fillcolor="{{vertice.color}}"] [shape={{vertice.shape}}]
+{% endfor %}
+
+{% for edge in edges %}
+ "{{edge.from}}" -- "{{edge.to}}"
+{% endfor %}
+}