From 5e4da01c3ae3ae2e870faba9085d9d9213c01c29 Mon Sep 17 00:00:00 2001 From: r Date: Fri, 13 Dec 2019 18:08:26 +0000 Subject: Initial commit --- templates/error.tmpl | 6 ++++++ templates/footer.tmpl | 2 ++ templates/header.tmpl | 10 ++++++++++ templates/homepage.tmpl | 4 ++++ templates/signin.tmpl | 9 +++++++++ templates/status.tmpl | 43 +++++++++++++++++++++++++++++++++++++++++++ templates/thread.tmpl | 24 ++++++++++++++++++++++++ templates/timeline.tmpl | 22 ++++++++++++++++++++++ 8 files changed, 120 insertions(+) create mode 100644 templates/error.tmpl create mode 100644 templates/footer.tmpl create mode 100644 templates/header.tmpl create mode 100644 templates/homepage.tmpl create mode 100644 templates/signin.tmpl create mode 100644 templates/status.tmpl create mode 100644 templates/thread.tmpl create mode 100644 templates/timeline.tmpl (limited to 'templates') diff --git a/templates/error.tmpl b/templates/error.tmpl new file mode 100644 index 0000000..b6943be --- /dev/null +++ b/templates/error.tmpl @@ -0,0 +1,6 @@ +{{template "header.tmpl"}} +

Error

+
{{.}}
+ Home +{{template "footer.tmpl"}} + diff --git a/templates/footer.tmpl b/templates/footer.tmpl new file mode 100644 index 0000000..308b1d0 --- /dev/null +++ b/templates/footer.tmpl @@ -0,0 +1,2 @@ + + diff --git a/templates/header.tmpl b/templates/header.tmpl new file mode 100644 index 0000000..970aca4 --- /dev/null +++ b/templates/header.tmpl @@ -0,0 +1,10 @@ + + + + + + Web + + + + diff --git a/templates/homepage.tmpl b/templates/homepage.tmpl new file mode 100644 index 0000000..256bb29 --- /dev/null +++ b/templates/homepage.tmpl @@ -0,0 +1,4 @@ +{{template "header.tmpl"}} +

HOME

+ Signin +{{template "footer.tmpl"}} diff --git a/templates/signin.tmpl b/templates/signin.tmpl new file mode 100644 index 0000000..07bc132 --- /dev/null +++ b/templates/signin.tmpl @@ -0,0 +1,9 @@ +{{template "header.tmpl"}} +

Signin

+ Home +
+ +
+ +
+{{template "footer.tmpl"}} diff --git a/templates/status.tmpl b/templates/status.tmpl new file mode 100644 index 0000000..47ff6e4 --- /dev/null +++ b/templates/status.tmpl @@ -0,0 +1,43 @@ +
+
+ profile-avatar +
+
+
+ {{WithEmojis .Account.DisplayName .Account.Emojis}} + {{.Account.Acct}} +
+
{{WithEmojis .Content .Emojis}}
+ +
+
diff --git a/templates/thread.tmpl b/templates/thread.tmpl new file mode 100644 index 0000000..4d6aad0 --- /dev/null +++ b/templates/thread.tmpl @@ -0,0 +1,24 @@ +{{template "header.tmpl"}} +

THREAD

+ +{{range .Context.Ancestors}} +{{template "status.tmpl" .}} +{{end}} + +{{template "status.tmpl" .Status}} +{{if .PostReply}} +
+ + +
+ +
+ +
+{{end}} + +{{range .Context.Descendants}} +{{template "status.tmpl" .}} +{{end}} + +{{template "footer.tmpl"}} diff --git a/templates/timeline.tmpl b/templates/timeline.tmpl new file mode 100644 index 0000000..b9ee3a5 --- /dev/null +++ b/templates/timeline.tmpl @@ -0,0 +1,22 @@ +{{template "header.tmpl"}} +

TIMELINE

+ +
+ +
+ +
+ +
+ +{{range .Statuses}} +{{template "status.tmpl" .}} +{{end}} + +{{if .HasNext}} + next +{{end}} +{{if .HasPrev}} + next +{{end}} +{{template "footer.tmpl"}} -- cgit v1.2.3