aboutsummaryrefslogtreecommitdiff
path: root/templates/index.html
blob: 50b6004bd12c1f4c7d855b578d1f6c4cdb43d46f (plain) (blame)
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
<!DOCTYPE html>
<html>
    <head>
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css" />
    </head>
    <body>
        <div class="container">
            <div class="row">
                <table class="u-full-width">
                    <thead>
                        <tr>
                            <th>Package</th>
                            <th>Source</th>
                            <th>Documentation</th>
                        </tr>
                    </thead>
                    <tbody>
                        {{ range $key, $value := .Packages }}
                        {{ $importPath := printf "%v/%v" $.URL $key }}
                        <tr>
                            <td>{{ $importPath }}</td>
                            <td>
                                <a href="//{{ $value.Repo }}">{{ $value.Repo }}</a>
                            </td>
                            <td>
                                <a href="//{{ $.Godoc.Host }}/{{ $importPath }}">
                                    <img src="//img.shields.io/badge/godoc-reference-blue?style=for-the-badge" alt="GoDoc" />
                                </a>
                            </td>
                        </tr>
                        {{ end }}
                    </tbody>
                </table>
            </div>
        </div>
    </body>
</html>