From ade49d8845e044292da64fcbe72a1f7ee91e66d9 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 2 Nov 2016 16:09:45 -0400 Subject: some views --- got/deleted.got | 0 got/edit.got | 16 ---------------- got/login.got | 10 ---------- got/modified.got | 0 got/page.html.got | 17 +++++++++++++++++ got/template.html.got | 31 ------------------------------- got/upload.got | 11 ----------- got/view_blob.got | 26 ++++++++++++++++++++++++++ got/view_tree.got | 16 ++++++++++++++++ 9 files changed, 59 insertions(+), 68 deletions(-) create mode 100644 got/deleted.got delete mode 100644 got/edit.got delete mode 100644 got/login.got create mode 100644 got/modified.got create mode 100644 got/page.html.got delete mode 100644 got/template.html.got delete mode 100644 got/upload.got create mode 100644 got/view_blob.got create mode 100644 got/view_tree.got (limited to 'got') diff --git a/got/deleted.got b/got/deleted.got new file mode 100644 index 0000000..e69de29 diff --git a/got/edit.got b/got/edit.got deleted file mode 100644 index 3fcdd23..0000000 --- a/got/edit.got +++ /dev/null @@ -1,16 +0,0 @@ - -

{{.path | html}}

-

Content-Type: {{.ctype | html}}

-
- - - - -
-
- - -

Instead of editing this in your browser, you can just upload a new copy.

- - -
diff --git a/got/login.got b/got/login.got deleted file mode 100644 index 546d2e3..0000000 --- a/got/login.got +++ /dev/null @@ -1,10 +0,0 @@ - -{{if neq .url ""}} -

You must log in to do that.

-{{endif}} -
- - - - -
diff --git a/got/modified.got b/got/modified.got new file mode 100644 index 0000000..e69de29 diff --git a/got/page.html.got b/got/page.html.got new file mode 100644 index 0000000..a0f34f9 --- /dev/null +++ b/got/page.html.got @@ -0,0 +1,17 @@ + + + + + + + + + {{.title | html}} + + + {{.head}} + + + {{.body}} + + diff --git a/got/template.html.got b/got/template.html.got deleted file mode 100644 index ab9e633..0000000 --- a/got/template.html.got +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - {{.title | html}} - - - {{.head}} - - -
- {{if eq .userid ""}} -

You are not logged in

- {{else}} -

You are logged in as {{.session.userid | html}}

-
- - - -
- {{endif}} -
-
- {{.body}} -
- - diff --git a/got/upload.got b/got/upload.got deleted file mode 100644 index 069d9f8..0000000 --- a/got/upload.got +++ /dev/null @@ -1,11 +0,0 @@ - -

{{.path | html}}

-

Content-Type: {{.ctype | html}}

-
- - -

You can't edit this type of file in your browser. But you can - upload a new version.

- - -
diff --git a/got/view_blob.got b/got/view_blob.got new file mode 100644 index 0000000..a1d7e2c --- /dev/null +++ b/got/view_blob.got @@ -0,0 +1,26 @@ + +

{{.path | html}}

+

Content-Type: {{.ctype | html}}

+{{if hasprefix .ctype "text/"}} +
+ + + + +
+{{else}} +

You can't edit this type of file in your browser.

+{{end}} +
+ +

Instead of editing this in your browser, you can just upload a new copy.

+ + + +
diff --git a/got/view_tree.got b/got/view_tree.got new file mode 100644 index 0000000..46f4af7 --- /dev/null +++ b/got/view_tree.got @@ -0,0 +1,16 @@ + +

Index of {{.path | html}}

+ + + + + + + {{range $name, $file := .files}} + + + + + + {{end}} +
..tree-
{{$name | html}}{{$file.Type | html}}{{if lt $file.Size 0}}-{{else}}{{$file.Size | html}}{{end}}
-- cgit v1.2.3