Commit 96bb4937 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

graph: add URL

parent fae5a0fd
Pipeline #935 failed with stages
in 47 seconds
......@@ -113,7 +113,7 @@ def graph_svg(request):
with open('/tmp/graph', 'w') as f:
print('digraph { rankdir=LR;', file=f)
for project in models.Project.objects.filter(from_gepetto=True):
print(f'{{I{} [label="{project}"];}}', file=f)
print(f'{{I{} [label="{project}" URL="{project.get_absolute_url()}"];}}', file=f)
for dep in models.Dependency.objects.filter(project__from_gepetto=True, library__from_gepetto=True):
print(f'I{} -> I{};', file=f)
print('}', file=f)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment