From fb7050acf2545c9d222d2c014460e4fcad5cc462 Mon Sep 17 00:00:00 2001 From: horus_arch Date: Fri, 8 May 2015 01:46:18 +0200 Subject: Initial commit. --- templates/footer.html | 15 +++++++++++++ templates/header.html | 17 ++++++++++++++ templates/help.md | 20 +++++++++++++++++ templates/index.html | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++ templates/navbar.html | 30 +++++++++++++++++++++++++ templates/view.html | 21 +++++++++++++++++ 6 files changed, 165 insertions(+) create mode 100644 templates/footer.html create mode 100644 templates/header.html create mode 100644 templates/help.md create mode 100644 templates/index.html create mode 100644 templates/navbar.html create mode 100644 templates/view.html (limited to 'templates') diff --git a/templates/footer.html b/templates/footer.html new file mode 100644 index 0000000..1c994c4 --- /dev/null +++ b/templates/footer.html @@ -0,0 +1,15 @@ + + + + + + + diff --git a/templates/header.html b/templates/header.html new file mode 100644 index 0000000..432b263 --- /dev/null +++ b/templates/header.html @@ -0,0 +1,17 @@ + + + + + + {{if .Title}} + {{.Title}} | Scribble + {{else}} + Welcome | Scribble + {{end}} + + + + + + + diff --git a/templates/help.md b/templates/help.md new file mode 100644 index 0000000..482ec43 --- /dev/null +++ b/templates/help.md @@ -0,0 +1,20 @@ +### Type your note + +Write your scribble, fill out a title and save. That's all. + +The title works as keyphrase later, so you can acces it later. + +### Access from everywhere + +You identify all notes by their title. Every note is public. +But because everything is public, no registration is required. Just save your note and send your compagnion the link per email. + +### Everything is MarkDown + +MarkDown is a popular and simple Markup Language to create content in the web. +[Learn here more about Markdown](https://daringfireball.net/projects/markdown/) + +### Attention! + +Everything posted here is in theory public. Don't put passwords or other stuff there. +Also, searching is case-sensitive. diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..ee462e5 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,62 @@ +{{template "header.html" .}} + +{{template "navbar.html" .}} + +
+
+ +
+

{{if .NotFound}}Not Found - Create it{{else}}Share your Notes online!{{end}}

+ +
+
+
+
+ +
+ +
+ +
+
+ + + + + +
+
+ +
+
+
+
+

To access the same scribble later just search for the title. Markdown supported! + +

+
+
+
+
+
+ +{{template "footer.html" .}} diff --git a/templates/navbar.html b/templates/navbar.html new file mode 100644 index 0000000..ed97f7c --- /dev/null +++ b/templates/navbar.html @@ -0,0 +1,30 @@ + diff --git a/templates/view.html b/templates/view.html new file mode 100644 index 0000000..094caaa --- /dev/null +++ b/templates/view.html @@ -0,0 +1,21 @@ +{{template "header.html" .}} + +{{template "navbar.html" .}} + +
+
+
+
+
+ Edit + +
+

{{.Title}}

+
+ {{RenderMarkdown .Post}} +
+
+
+
+ +{{template "footer.html"}} -- cgit v1.2.3