Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions static/css/graph.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
body {
margin: 0;
font-family: Arial, sans-serif;
background: #f3f4f6;
color: #111827;
}

main {
display: grid;
grid-template-columns: 1fr 320px;
Expand Down
3 changes: 1 addition & 2 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{% block title %}Graph viewer{% endblock %}</title>
<link rel="stylesheet" href="{{ url_for('static', filename='css/design-system.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='css/graph.css') }}" />
{% block extra_head %}{% endblock %}
</head>
<body>
<body class="govuk-template__body">
<header class="govuk-template__header">
<div class="govuk-header">
<div class="govuk-header__container govuk-width-container">
Expand Down
6 changes: 2 additions & 4 deletions templates/graph-unavailable.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
{% block title %}Graph unavailable{% endblock %}

{% block content %}
<div>
<h1>Graph unavailable</h1>
<p>{{ message }}</p>
</div>
<h1>Graph unavailable</h1>
<p class="govuk-body">{{ message }}</p>
{% endblock %}
5 changes: 3 additions & 2 deletions templates/graph.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@
{% block title %}Graph viewer{% endblock %}

{% block extra_head %}
<link rel="stylesheet" href="{{ url_for('static', filename='css/graph.css') }}" />
<script src="https://unpkg.com/cytoscape@3.4.0/dist/cytoscape.min.js"></script>
{% endblock %}

{% block content %}
<div class="graph-container">
<div class="graph-container govuk-body">
<div id="graph"></div>
<div class="graph-filter">
<label for="graph-filter-input">Filter</label>
<input id="graph-filter-input" type="search" placeholder="Filter nodes by label..." aria-label="Filter graph nodes" />
</div>
</div>
<aside class="sidebar">
<aside class="sidebar govuk-body">
<h2 id="sidebar-title">No node selected</h2>
<div id="node-details"><p>Select a node to view details.</p></div>
</aside>
Expand Down
Loading
Loading