summaryrefslogtreecommitdiff
path: root/cmd/generate/imworkingon.html.tmpl
blob: 7c2cb73344573997c244d43fd4d1515a27c585ac (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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>Luke is working on…</title>
	<link rel="stylesheet" type="text/css" href="../blog/assets/style.css">
	<link rel="stylesheet" type="text/css" href="imworkingon.css">
</head>
<body>
	<header><a href="/">Luke T. Shumaker</a> » imworkingon</header>

	<section id="intro">
		<h1>Luke is working on<br/><small>improving the GNU/Linux ecosystem</small></h1>
		<p>If you find this work valuable, please
			consider <a class="em" href="../sponsor/">sponsoring me</a>.</p>
	</section>

	<section id="tags">
		<h2>Top themes</h2>
		{{- range $tagName, $tagInfo := .Tags }}
		<article class="tag" id="tag-{{ $tagName }}">
			<h2><a href="#tag-{{ $tagName }}">#{{ $tagName }}</a> : {{ $tagInfo.PrettyName }}</h2>
			<div clasg="tag-desc">{{ $tagInfo.Desc | md2html }}</div>
		</article>
		{{- end }}
	</section>

	<section id="contribs-pending">
		<h2>In-progress work</h2>
		{{- range $contrib := .Contribs }}
		{{- if or (eq $contrib.StatusClass "merged") (eq $contrib.StatusClass "released") }}{{ continue }}{{ end }}
		{{ $upstream := $contrib | getUpstream }}
		<article class="contrib {{ $contrib.StatusClass }}-contrib">
			<div class="contrib-upstream-name"><a class="em" href="{{ index $upstream.URLs 0 }}">{{ $upstream.Name }}</a></div>
			<div class="contrib-upstream-desc">{{ $upstream.Desc | md2html }}</div>
			<div class="contrib-urls">
				{{- range $url := $contrib.URLs }}
				<a href="{{ $url }}"><tt>{{ $url }}</tt></a><br />
				{{- end }}
			</div>
			<div class="contrib-tags">
				{{- range $tag := $contrib.Tags }}
				<a href="#tag-{{ $tag }}">#{{ $tag }}</a> {{/* */}}
				{{- end }}
			</div>
			<div class="contrib-submitted">Submitted: {{ timeTag $contrib.SubmittedAt "2006-01-02" }}</div>
			<div class="contrib-updated">{{ if not $contrib.LastUpdatedAt.IsZero }}Last updated: {{ timeTag $contrib.LastUpdatedAt "2006-01-02" }}{{ end }}</div>
			<div class="contrib-status">Status: {{ $contrib.Status }}</div>
			<div class="contrib-desc">
				{{- $contrib.Desc | md2html }}
				{{- if $contrib.SponsoredBy }}<p>Sponsored-by: {{ $contrib.SponsoredBy }}</p>{{ end -}}
			</div>
		</article>
		{{- end }}
	</section>
	<section id="contribs-completed">
		<h2>Completed work</h2>
		{{- range $contrib := .Contribs }}
		{{- if or (eq $contrib.StatusClass "merged") (eq $contrib.StatusClass "released") | not }}{{ continue }}{{ end }}
		{{ $upstream := $contrib | getUpstream }}
		<article class="contrib {{ $contrib.StatusClass }}-contrib">
			<div class="contrib-upstream-name"><a class="em" href="{{ index $upstream.URLs 0 }}">{{ $upstream.Name }}</a></div>
			<div class="contrib-upstream-desc">{{ $upstream.Desc | md2html }}</div>
			<div class="contrib-urls">
				{{- range $url := $contrib.URLs }}
				<a href="{{ $url }}"><tt>{{ $url }}</tt></a><br />
				{{- end }}
			</div>
			<div class="contrib-tags">
				{{- range $tag := $contrib.Tags }}
				<a href="#tag-{{ $tag }}">#{{ $tag }}</a> {{/* */}}
				{{- end }}
			</div>
			<div class="contrib-submitted">Submitted: {{ timeTag $contrib.SubmittedAt "2006-01-02" }}</div>
			<div class="contrib-updated">{{ if not $contrib.LastUpdatedAt.IsZero }}Last updated: {{ timeTag $contrib.LastUpdatedAt "2006-01-02" }}{{ end }}</div>
			<div class="contrib-status">Status: {{ $contrib.Status }}</div>
			<div class="contrib-desc">
				{{- $contrib.Desc | md2html }}
				{{- if $contrib.SponsoredBy }}<p>Sponsored-by: {{ $contrib.SponsoredBy }}</p>{{ end -}}
			</div>
		</article>
		{{- end }}
	</section>
	<section id="standups">
		<h2>Daily statuses</h2>
		<p>Posted daily on <a href="https://fosstodon.org/@lukeshu">Mastodon</a> with the #DailyStandup tag.</p>

		<details><summary>Calendar view</summary>
			<table>
				<thead>
					<tr>
						<th></th>
						<th><abbr title="Sunday">Su</abbr></th>
						<th><abbr title="Monday">M</abbr></th>
						<th><abbr title="Tuesday">Tu</abbr></th>
						<th><abbr title="Wednesday">W</abbr></th>
						<th><abbr title="Thursday">Th</abbr></th>
						<th><abbr title="Friday">F</abbr></th>
						<th><abbr title="Saturday">S</abbr></th>
						<th></th>
					</tr>
				</thead>
				<tbody>
					{{- $cal := .StandupCalendar }}
					{{- $curSunMonth := 0 }}
					{{- $curSatMonth := 0 }}
					{{- range $i, $week := reverse .StandupCalendar }}
					<tr>
						{{- $sun := (index $week time.Sunday) }}
						{{- if not $sun.Day }}
							<th></th>
						{{- else if ne $sun.Month $curSunMonth }}
							<th class="{{ monthClass $sun.Month }}" rowspan="{{ $cal.NumWeekdaysInMonth time.Sunday $sun.Date }}">
								<span>{{ $sun.Month }} {{ $sun.Year }}</span>
							</th>
							{{- $curSunMonth = $sun.Month }}
						{{- end }}
						{{- range $day := $week }}
							{{- if not $day.Day }}
								<td></td>
							{{- else if not $day.Data }}
								<td class="{{ monthClass $day.Month }}">
									{{ $day.Day }}
								</td>
							{{- else }}
								<td class="{{ monthClass $day.Month }}">
									<a href="#standup-id-{{ $day.Data.ID }}">
										{{ $day.Day }}
									</a>
								</td>
							{{- end }}
						</td>
						{{- end }}
						{{- $sat := (index $week time.Saturday) }}
						{{- if not $sat.Day }}
							<th></th>
						{{- else if ne $sat.Month $curSatMonth }}
							<th class="{{ monthClass $sat.Month }}"  rowspan="{{ $cal.NumWeekdaysInMonth time.Saturday $sat.Date }}">
								<span>{{ $sat.Month }} {{ $sat.Year }}</span>
							</th>
							{{- $curSatMonth = $sat.Month }}
						{{- end }}
					{{- end }}
					</tr>
				</tbody>
			</table>
		</details>

		{{- range $status := .Standups }}
		<article class="standup" id="standup-id-{{ $status.ID }}">
			<div class="standup-title"><a href="{{ $status.URL }}">{{ timeTag $status.CreatedAt "Mon 2006-01-02" }}</a></div>
			<div class="standup-content">{{ $status.Content }}</div>
		</article>
		{{- end }}
	</section>

	<footer>
		<p>The content of this page is Copyright © Luke T. Shumaker.</p>
		<p>This page is licensed under the <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a> license.</p>
	</footer>
</body>
</html>