From 9bb09c9cf591fd977bd8162f648285625df8dc8c Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Thu, 7 Apr 2016 10:15:46 -0400 Subject: [PATCH] Added privacy policy --- main.go | 7 +++++-- templates/index.tmpl | 11 ++++++++++- templates/list.tmpl | 8 +++++++- templates/view.tmpl | 8 +++++++- 4 files changed, 29 insertions(+), 5 deletions(-) diff --git a/main.go b/main.go index a953109..b43616e 100644 --- a/main.go +++ b/main.go @@ -107,9 +107,12 @@ Options:`) Close() // Default page - aboutFile, _ := ioutil.ReadFile(path.Join(RuntimeArgs.SourcePath, "templates/aboutpage.md")) + defaultPage, _ := ioutil.ReadFile(path.Join(RuntimeArgs.SourcePath, "templates/aboutpage.md")) p := WikiData{"help", "", []string{}, []string{}, false, "zzz"} - p.save(string(aboutFile)) + p.save(string(defaultPage)) + defaultPage, _ = ioutil.ReadFile(path.Join(RuntimeArgs.SourcePath, "templates/privacypolicy.md")) + p = WikiData{"privacypolicy", "", []string{}, []string{}, false, "zzz"} + p.save(string(defaultPage)) if len(RuntimeArgs.RestoreDataset) > 0 { fmt.Println("Restoring data from '" + RuntimeArgs.RestoreDataset + "' folder...") diff --git a/templates/index.tmpl b/templates/index.tmpl index b24638c..6814a9c 100644 --- a/templates/index.tmpl +++ b/templates/index.tmpl @@ -124,7 +124,16 @@
  • View
  • List
  • -
  • Help
  • + + + + diff --git a/templates/list.tmpl b/templates/list.tmpl index eae054a..1993621 100644 --- a/templates/list.tmpl +++ b/templates/list.tmpl @@ -36,7 +36,13 @@ span { cursor: pointer; }
  • Edit
  • View
  • List
  • -
  • Help
  • + diff --git a/templates/view.tmpl b/templates/view.tmpl index e28a50e..f8687a8 100644 --- a/templates/view.tmpl +++ b/templates/view.tmpl @@ -103,7 +103,13 @@ a.deleteable {
  • List
  • -
  • Help
  • +