gitar

Tiny change to file.html

Author
Maarten Vangeneugden
Date
Oct. 19, 2017, 6:07 a.m.
Hash
1b0920e3304815fa9e94a5cf35c201cd99ed2426
Parent
efdf0b5d600f3ba47fea33c1866e76ed0c4718f3
Modified file
templates/gitar/file.html

templates/gitar/file.html

3 additions and 2 deletions.

View changes Hide changes
1
1
2
2
{% block title %}{{repository_name}}/{{file_name}} | Gitar{% endblock title %}
3
3
4
4
{% block stylesheets %}
5
5
<link href="/static/website/materialize/css/google-icons.css" rel="stylesheet" />
6
6
<link href="/static/website/materialize/css/materialize.css" rel="stylesheet" media="screen, projection" />
7
7
<link rel="stylesheet" href="https://cdn.rawgit.com/tonsky/FiraCode/1.204/distr/fira_code.css">
8
8
<!-- TODO: Download Fira Code stylesheet and serve via the static folder. -->
9
9
<!--<style>
10
10
td {
11
11
	padding: 0 0 0 0;
12
12
}
13
13
pre {
14
14
	margin-top: 10px;
15
15
	margin-bottom: 10px;
16
16
}
17
17
table {
18
18
	line-height: 0px;
19
19
	padding-top: 0px;
20
20
	padding-bottom: 0px;
21
21
	border-spacing: 0 0;
22
22
	margin-top: 0px;
23
23
	margin-bottom: 0px;
24
24
}
25
25
</style>-->
26
26
{# For the syntax coloring of Gitar. TODO for later. #}
27
27
<link rel="stylesheet" type="text/css" href="/static/website/syntax.css" />
28
28
<link rel="stylesheet" type="text/css" href="/static/gitar/css/file.css" />
29
29
{% endblock stylesheets %}
30
30
31
31
{% block description %}
32
32
Content of {{file_name}} in {{repository_name}}
33
33
{% endblock description %}
34
34
{% block main %}
35
35
{% with mdac=materialDesign_accentColor mdc=materialDesign_color %} {# You'll see why this is handy shortly. #}
36
36
<div class="section {{ materialDesign_color }} lighten-2">
37
37
</div>
38
38
<div class="container section" style="font-family: 'Fira Code', monospace;">
39
39
    <h3 class="{{mdac}}-text text-accent-3">{{file_name}}</h3>
40
40
	<table class="highlight">
41
41
		{% for line in content %}
42
42
		<tr>
43
43
			  <td id="{{ forloop.counter }}" class="line-number">
44
-
            <a
+
44
                                    style=":hover { background-color: #00E676;}">
+
45
            <a
45
46
                class="{{mdc}}-text"
46
47
                style="a:hover { color: #00e676;}"
47
-
                href="#{{ forloop.counter }}">
+
48
                href="#{{ forloop.counter }}">
48
49
                <pre>{{ forloop.counter }}</pre></a></td>
49
50
			<td><pre>{{ line|safe }}</pre></td>
50
51
		</tr>
51
52
		{% endfor %}
52
53
	</table>
53
54
{% endwith %}
54
55
{% endblock main %}
55
56