|
|
@ -200,11 +200,16 @@ def main (args): |
|
|
|
# todo, make this process reflect which files actually were made |
|
|
|
versionbaseurl = quote(padid) |
|
|
|
links.append({"href":versions[0]["url"], "rel":"alternate", "type":"text/html", "title":"Etherpad"}) |
|
|
|
links.append({"href":versionbaseurl+raw_ext, "rel":"alternate", "type":"text/plain", "title":"Plain text"}) |
|
|
|
links.append({"href":versionbaseurl+".raw.html", "rel":"alternate", "type":"text/html", "title":"HTML"}) |
|
|
|
links.append({"href":versionbaseurl+".diff.html", "rel":"alternate", "type":"text/html", "title":"HTML with author colors"}) |
|
|
|
links.append({"href":versionbaseurl+".meta.json", "rel":"alternate", "type":"application/json", "title":"Meta data"}) |
|
|
|
links.append({"href":"/", "rel":"search", "type":"text/html", "title":"Index"}) |
|
|
|
if args.all or args.text: |
|
|
|
links.append({"href":versionbaseurl+raw_ext, "rel":"alternate", "type":"text/plain", "title":"Plain text"}) |
|
|
|
if args.all or args.html: |
|
|
|
links.append({"href":versionbaseurl+".raw.html", "rel":"alternate", "type":"text/html", "title":"HTML"}) |
|
|
|
if args.all or args.dhtml: |
|
|
|
links.append({"href":versionbaseurl+".diff.html", "rel":"alternate", "type":"text/html", "title":"HTML with author colors"}) |
|
|
|
if args.all or args.meta: |
|
|
|
links.append({"href":versionbaseurl+".meta.json", "rel":"alternate", "type":"application/json", "title":"Meta data"}) |
|
|
|
|
|
|
|
# links.append({"href":"/", "rel":"search", "type":"text/html", "title":"Index"}) |
|
|
|
|
|
|
|
if args.all or args.dhtml: |
|
|
|
data['startRev'] = "0" |
|
|
|