1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00

Added privacy policy

Former-commit-id: 49e760dfdb7df12390c15ddb9bf90901ce7a09f2 [formerly cb863afaded514e3861ecfc502c8b3ca91a2b0e4] [formerly 23fa460d620770a8f1774906fb1d22d60f6572c3 [formerly 9bb09c9cf5]]
Former-commit-id: c1686ffa4ac9b7007eaad466d840f767975522be [formerly 0e22f65559dd9d334fc37c64a3d650b164269586]
Former-commit-id: 18d84dabea5b118bfc0264af941a766de332ba62
This commit is contained in:
Zack Scholl 2016-04-07 10:15:46 -04:00
parent dfe55f1ce4
commit af129664d0
4 changed files with 29 additions and 5 deletions

View File

@ -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...")

View File

@ -124,7 +124,16 @@
</li>
<li><a href="/{{ .Title }}/view"><span class="glyphicon glyphicon-sunglasses" aria-hidden="true"></span> View</a></li>
<li><a href="/{{ .Title }}/list"><span class="glyphicon glyphicon-align-left" aria-hidden="true"></span> List</a></li>
<li><a href="/Help/view"><span class="glyphicon glyphicon-question-sign" aria-hidden="true"></span> Help</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" class="active"><span class="glyphicon glyphicon-question-sign" aria-hidden="true"></span> Help <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="/Help/view"> Help</a></li>
<li><a href="/PrivacyPolicy/view"> Privacy Policy</a></li>
</ul>
</li>
</ul>
</div>
<!--/.nav-collapse -->

View File

@ -36,7 +36,13 @@ span { cursor: pointer; }
<li><a href="/{{ .Title }}"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> Edit</a></li>
<li><a href="/{{ .Title }}/view"><span class="glyphicon glyphicon-sunglasses" aria-hidden="true"></span> View</a></li>
<li class="active"><a href="/{{ .Title }}/list"><span class="glyphicon glyphicon-align-left" aria-hidden="true"></span> List</a></li>
<li><a href="/Help/view"><span class="glyphicon glyphicon-question-sign" aria-hidden="true"></span> Help</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" class="active"><span class="glyphicon glyphicon-question-sign" aria-hidden="true"></span> Help <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="/Help/view"> Help</a></li>
<li><a href="/PrivacyPolicy/view"> Privacy Policy</a></li>
</ul>
</li>
</ul>
</div>
<!--/.nav-collapse -->

View File

@ -103,7 +103,13 @@ a.deleteable {
</ul>
</li>
<li><a href="/{{ .Title }}/list"><span class="glyphicon glyphicon-align-left" aria-hidden="true"></span> List</a></li>
<li><a href="/Help/view"><span class="glyphicon glyphicon-question-sign" aria-hidden="true"></span> Help</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" class="active"><span class="glyphicon glyphicon-question-sign" aria-hidden="true"></span> Help <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="/Help/view"> Help</a></li>
<li><a href="/PrivacyPolicy/view"> Privacy Policy</a></li>
</ul>
</li>
</ul>
</div>
<!--/.nav-collapse -->