summaryrefslogtreecommitdiff
path: root/root.template
blob: 8dac68c9df21ea30f01d2f6d850b3247b6100989 (plain)
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<html>
    <head>
        <title>Noteman</title>
        <style>
        .box {
            padding: 10px;
            border: 1px solid black;
        }
        #name {
            width: 300px;
        }
        td {
            padding: 0 15px
        }
        </style>
    </head>
    <body>
        <div class="box">
            <h4>Navn format</h4>

            <pre>$DATE/$COURSE/$MODULE/$SECTION/$PART</pre>

            <table>
                <tr>
                    <td>$DATE:</td>
                    <td>ISO Date</td>
                </tr>
                <tr>
                    <td>$COURSE:</td>
                    <td>Course or subject name</td>
                </tr>
                <tr>
                    <td>$MODULE:</td>
                    <td>Index of subject, such as a single lecture</td>
                </tr>
                <tr>
                    <td>$SECTION:</td>
                    <td>Section of Module</td>
                </tr>
                <tr>
                    <td>$PART:</td>
                    <td>Document index</td>
                </tr>
            </table><br>

            <p>Examples:</p>
            <pre>2020-09-09/sig/mm1/noter/1
2020-09-09/sig/mm1/noter/2
2020-09-09/sig/mm1/opg/1</pre>
            <table>
                <tr>
                    <th>Location format</th>
                </tr>
                <tr>
                    <td>Page</td>
                    <td>P</td>
                </tr>
                <tr>
                    <td>Book</td>
                    <td>B[id]S[page]</td>
                </tr>
                <tr>
                    <td>Notes git repo</td>
                    <td>G</td>
                </tr>
            </table><br><br>
            <form method="POST">
                <label for="name">Name</label>
                <input id="name" name="name" type="text">
                <label for="location">Location</label>
                <input id="location" name="location" type="text">
                <input type="submit" value="go">
            </form>
        </div><br><br>
        <table>
            <tr>
                <th>Ref</th>
                <th>Name</th>
            </tr>
            {{ range .Notes }}
            <tr>
                <td style="font-family: monospace;">#{{ .Hash }}/{{ .Location }}</td>
                <td>{{ .Name }}</td>
            </tr>
            {{ end }}
        </table>
    </body>
</html>