about summary refs log tree commit diff
path: root/hosted/tmpl/pastTalks.html
blob: cf2f0f1b184697992c303061cf886e50635e3283 (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
{{ define "pastTalks" }}
            <div class="container mt-5">
                <h2>Past talks: {{ .pastCount }}</h2>
                <hr>
                <div class="row">
                    <div class="row row-cols-1 row-cols-md-3">
                        {{ range $i, $talk := .pastTalks }}
                        <div class="col mb-3">
                            <div class="card h-100">
                                <div class="card-header">
                                    <h5 class="card-title">{{ $talk.Title }}</h5>
                                </div>
                                <div class="card-body">
                                    <p class="card-text">{{ $talk.Description }}</p>
                                    <a href="/talk/{{ $talk.UUID }}" class="btn btn-primary">Details</a>
                                </div>
                                <div class="card-footer text-muted">
                                    <div class="row">
                                        <div class="col text-left">
                                            {{ $talk.FormattedDate }}
                                        </div>
                                        <div class="col text-right">
                                            {{ $talk.Nickname }}
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        {{ end }}
                    </div>

                    {{ if .All }}
                    {{ else }}
                    <div class="text-right mt-3">
                        <a href="/past" class="link-secondary">view all</a>
                    </div>
                    {{ end }}
                </div>
                <hr>
            </div>
{{ end }}