-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtemplate.html
68 lines (68 loc) · 2.1 KB
/
template.html
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>{{ structure.cls.__name__ }}</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/css/bootstrap.min.css"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.7/styles/solarized_dark.min.css"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.7/highlight.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.7/languages/python.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0-alpha1/jquery.min.js"></script>
<style>
.row .first {
width: 600px;
float: left;
}
.row .info {
float: left;
}
pre {
border: none;
padding: 0;
margin: 0;
border-radius: 0;
font-size: 14px;
cursor: pointer;
}
</style>
</head>
<body>
<div class="container">
<h1 class="page-header">{{ structure.cls.__name__ }}</h1>
<div class="rows">
<div class="row">
<div class="first">
<pre><code class="python">{{ structure.inherited }}</code></pre>
</div>
</div>
{% for member in structure.members %}
{% for line in member.lines.0 %}
<div class="row">
<div class="first">
<pre><code class="python">{{ line }}</code></pre>
</div>
<div class="last">
{% if member.root %}
{{ member.root.file }} - {{ member.root.cls.__name__ }}
{% else %}
{{ member.file }} - {{ structure.cls.__name__ }}
{% endif %}
</div>
</div>
{% endfor %}
{% endfor %}
<div>
</div>
<script>
$('.row').on({
"mouseenter": function(e){
$(this).css('border', '1px solid red');
},
"mouseleave": function(e){
$(this).css('border', 'none');
}
});
</script>
</body>
</html>