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
|
{{mark "metadata"}}
campusweb: course
{{template "status" .}}
{{with .Course}}title: {{text .Title}}{{if .Subtitle}} — {{text .Subtitle}}{{end}}
{{if .Number}}number: {{text .Number}}
{{end}}semesters: {{.Semesters}}
{{if .Location}}location: {{text .Location}}
{{end}}files: {{.Files}} ({{size .FileBytes}}){{if .Missing}}, {{.Missing}} not stored{{end}}
synced: {{if .Synced.IsZero}}never{{else}}{{when .Synced}}{{end}}{{if .SyncError}}; LAST SYNC FAILED: {{text .SyncError}}{{end}}
{{if .Left}}LEFT on {{when .Gone}}: the account is no longer in this course. What is below is
what it held then; it is not synced any more.
{{end}}digicampus: https://digicampus.uni-augsburg.de/dispatch.php/course/overview?cid={{.ID}}
{{end}}{{if .New.Total}}unseen: {{.New.Total}} change{{if ne .New.Total 1}}s{{end}}, marked UNSEEN below; reading here does not mark them seen
{{end}}{{with .Next}}next date: {{day .Start}} {{clock .Start}}–{{clock .End}}{{if .Location}} · {{text .Location}}{{end}}
{{end}}
{{- if .Details}}
{{mark "details"}}
{{template "untrusted"}}
The course's details page on Digicampus, field by field. Claims cite it as
/source/course/{{.Course.ID}}.
{{range .Details}}
{{.Label}}:
{{safe (stext .Text)}}
{{end}}{{mark "end details"}}
{{- end}}
{{mark "files"}}
{{template "untrusted"}}
Each file: size, last change upstream, then where to read it. "not stored" means
campusweb has no copy; the reason follows.{{if .GoneFiles}}
{{.GoneFiles}} file(s) removed upstream are kept and hidden here: ?gone=1 shows them.{{end}}
{{range .Folders}}
{{indent .Depth}}[{{text .Name}}]{{if .Gone}} (removed upstream){{end}}{{if .ID}} /folder/{{.ID}}{{end}}
{{- $d := .Depth}}
{{- range .Files}}
{{indent $d}} {{text .Name}} {{size .Size}} {{when .Chdate}}{{if .New}} UNSEEN{{end}}{{if not .Gone.IsZero}} REMOVED UPSTREAM {{when .Gone}}{{end}}
{{indent $d}} {{if .Link}}LINK to {{text .Link}}{{else if .Stored}}/file/{{.ID}}{{if gt .Versions 1}} ({{.Versions}} versions){{end}}{{else}}not stored: {{text .FetchError}} — /file/{{.ID}}{{end}}
{{- end}}
{{- else}}
(no files)
{{- end}}
{{- if .Own}}
{{mark "own files"}}
Files the reader added to this course, not on Digicampus, each with where its
uploader says it comes from; campusweb did not check that. See campusweb(1) OWN FILES.
{{range .Own}}
{{text .Name}} {{size .HaveSize}} added {{when .Chdate}} by {{text .AddedBy}}{{if gt .Versions 1}} ({{.Versions}} versions){{end}}{{if .IsWithdrawn}} WITHDRAWN {{when .Withdrawn}}{{end}}
origin: {{text .Origin}}
/file/{{.ID}}
{{- end}}
{{- end}}
{{mark "news"}}
{{range .News}}
{{when .PubStart}} {{text .Title}}{{if .Expired}} (expired){{end}}{{if .New}} UNSEEN{{end}}
read: /news/{{.ID}}
{{- else}}
(no news)
{{- end}}
{{mark "dates"}}
{{- if .Dates}}
{{template "claimsnote"}}
{{end}}
{{range .Dates}}{{if .Unmatched}}{{day .Start}} {{if .HasTime}}{{clock .Start}}{{else}}(no time){{end}} NOT IN STUD.IP{{else}}{{day .Start}} {{clock .Start}}–{{clock .End}}{{if .Cancelled}} CANCELLED{{end}}{{if .New}} (CHANGED, unseen){{end}}{{if .Location}} · {{text .Location}}{{end}}{{if .Title}}{{if ne .Title .CourseTitle}} · {{text .Title}}{{end}}{{end}}{{end}}{{template "claims" .Claims}}
{{else}}(no dates)
{{end}}
{{- if .Facts}}
{{mark "about the course"}}
Claims about the course as a whole, each read from the source named under it.
{{template "claims" .Facts}}
{{end}}
{{- mark "forum"}}
{{range .Discussions}}
{{if .Topic}}{{text .Topic}} / {{end}}{{text .Title}} {{.Postings}} posting{{if ne .Postings 1}}s{{end}}, last {{when .Activity}}{{if .New}}, {{.New}} UNSEEN{{end}}{{if .Gone}} (removed upstream){{end}}
read: /discussion/{{.ID}}
{{- else}}
(no forum discussions)
{{- end}}
{{mark "information pages"}}
The lecturer's own tabs of general information (Stud.IP's "free information
pages"). Read from the website at most once a day.
{{range .Info}}
{{text .Name}} changed {{when .Chdate}}{{if .New}} UNSEEN{{end}}{{if not .Gone.IsZero}} (removed upstream){{end}}
read: /page/{{.ID}}
{{- else}}
(no information pages)
{{- end}}
{{mark "wiki"}}
{{range .Wiki}}
{{indent .Depth}}{{text .Name}} changed {{when .Chdate}}{{if .New}} UNSEEN{{end}}{{if not .Gone.IsZero}} (removed upstream){{end}}
{{indent .Depth}} read: /page/{{.ID}}
{{- else}}
(no wiki pages)
{{- end}}
{{mark "routes"}}
/file/{id} one file: versions, where to download
/folder/{id} one folder and what is below it
/page/{id} one wiki or information page, with its older texts
/course/{{.Course.ID}}?gone=1 include files removed upstream
/course/{{.Course.ID}}/forum the forum alone
POST /seen course={{.Course.ID}} before={{.Before}} mark this course seen (a person's decision)
POST /course/{{.Course.ID}}/own?name=…&origin=…&by=…[&description=…] add an own file, the body its bytes
POST /course/{{.Course.ID}}/claims add claims about its dates or the course, JSON; see campusweb(1) CLAIMS
POST /claim/{n}/withdraw withdraw claim n
{{template "nav"}}
|