-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgraph.html.erb
More file actions
39 lines (34 loc) · 1.02 KB
/
graph.html.erb
File metadata and controls
39 lines (34 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!doctype html>
<head>
<title><%= g[:name] %></title>
<link href="ext/style.css" rel="stylesheet">
</head>
<div id="container">
<h1 id="title"><%= g[:name] %></h1>
<p id="about-link">(<a href="about.html">about</a>)</p>
<p id="backlink"><a href="./">Back to the graph database</a></p>
<dl>
<dt><i>n</i></dt>
<dd><a href="./?n=%3D<%= g[:n] %>"><%= g[:n] %></a></dd>
<dt><i>m</i></dt>
<dd><a href="./?m=%3D<%= g[:m] %>"><%= g[:m] %></a></dd>
<dt>Vertex degrees</dt>
<dd>
<a href="./?degrees=(<%= g[:degrees].join('%2C%20') %>)">
(<%= g[:degrees].join(', ') %>)
</a>
</dd>
</dl>
<div id="image">
<object data="image/<%= g[:name] %>.svg" type="image/svg+xml"
width="400" height="400">
<img src="image/<%= g[:name] %>.png" alt="" height="400">
</object>
</div>
<p id="imagelink">
<a href="image/<%= g[:name] %>.svg">SVG for <%= g[:name] %></a>
</p>
</div>
<div id="byline">
<p>By <a href='http://sean.mcgivern.me.uk'>Sean McGivern</a></p>
</div>