From 090e484e72117c22c5afca2d35877b4948a1c176 Mon Sep 17 00:00:00 2001 From: Asaf Gartner Date: Wed, 23 Jun 2021 23:13:22 +0300 Subject: [PATCH] Snippet page --- src/templates/src/snippet.html | 27 ++++++++ src/templates/types.go | 1 + src/website/routes.go | 1 + src/website/snippet.go | 117 +++++++++++++++++++++++++++++++++ src/website/timeline_helper.go | 3 + 5 files changed, 149 insertions(+) create mode 100644 src/templates/src/snippet.html create mode 100644 src/website/snippet.go diff --git a/src/templates/src/snippet.html b/src/templates/src/snippet.html new file mode 100644 index 00000000..79d00153 --- /dev/null +++ b/src/templates/src/snippet.html @@ -0,0 +1,27 @@ +{{ template "base.html" . }} + +{{ define "content" }} +
+
+ +

{{ .Snippet.Description }}

+
+ {{ if snippetimage .Snippet }} + + {{ else if snippetvideo .Snippet }} +