-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathview.html
More file actions
28 lines (28 loc) · 1.11 KB
/
view.html
File metadata and controls
28 lines (28 loc) · 1.11 KB
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
{{ define "content" }}
<h2 class="m-0 font-bold text-lg">{{ .job.Position }}</h2>
{{ if .job.LookingForWork }}
<div class="mb-6 text-sm text-gray-600">Candidate looking for work</div>
{{ else }}
<div class="mb-6">{{ .job.Organization }}</div>
{{ end }}
{{ if.job.Description.Valid }}
<hr>
<div class="mb-6">{{ .description }}</div>
{{ end }}
{{ if .job.Url.Valid }}
<div class="mb-6">
<a href="{{ .job.Url.String }}" target="_blank" class="btn btn-primary">
{{ if .job.LookingForWork }}Contact{{ else }}Apply{{ end }}
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" width="20" height="20" fill="currentColor" class="inline-block ml-1"><path d="M0 3c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3zm2 2v12h16V5H2zm8 3l4 5H6l4-5z"/></svg>
</a>
</div>
{{ end }}
<a
href="/jobs/{{ .job.ID }}"
class="relative z-10 text-gray-500 hover:underline focus:underline"
>
<time datetime="{{ .job.PublishedAt | formatAsRfc3339String }}" class="text-sm">
Posted {{ .job.PublishedAt | formatAsDate }}
</time>
</a>
{{ end }}