From 3340a9d288fd3c893aa4251045987f38e3a1dc28 Mon Sep 17 00:00:00 2001 From: Mihai Parparita Date: Sat, 13 Dec 2014 21:36:29 -0800 Subject: [PATCH] Add FAQ. --- app/retrogit.go | 5 +++ app/templates/base/page.html | 2 +- app/templates/faq.html | 60 ++++++++++++++++++++++++++++++++++++ 3 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 app/templates/faq.html diff --git a/app/retrogit.go b/app/retrogit.go index 363d20a..ae08487 100644 --- a/app/retrogit.go +++ b/app/retrogit.go @@ -41,6 +41,7 @@ func init() { router = mux.NewRouter() router.Handle("/", AppHandler(indexHandler)).Name("index") + router.Handle("/faq", AppHandler(faqHandler)).Name("faq") router.Handle("/session/sign-in", AppHandler(signInHandler)).Name("sign-in").Methods("POST") router.Handle("/session/sign-out", AppHandler(signOutHandler)).Name("sign-out").Methods("POST") @@ -157,6 +158,10 @@ func indexHandler(w http.ResponseWriter, r *http.Request) *AppError { }) } +func faqHandler(w http.ResponseWriter, r *http.Request) *AppError { + return templates["faq"].Render(w, nil) +} + func signInHandler(w http.ResponseWriter, r *http.Request) *AppError { config := &githubOauthConfig if r.FormValue("include_private") != "1" { diff --git a/app/templates/base/page.html b/app/templates/base/page.html index 3efef49..ec0991d 100644 --- a/app/templates/base/page.html +++ b/app/templates/base/page.html @@ -29,7 +29,7 @@ RetroGit is a project by Mihai Parparita - - FAQ + FAQ - Source diff --git a/app/templates/faq.html b/app/templates/faq.html new file mode 100644 index 0000000..78a94cc --- /dev/null +++ b/app/templates/faq.html @@ -0,0 +1,60 @@ +{{define "title"}} FAQ {{end}} + +{{define "body"}} + +

Why do you need such broad access to my GitHub account?

+ +
+ RetroGit requests access for a couple of kinds of data from your GitHub account: +
+ +

How much data can you see about my account?

+ +
+ RetroGit has access to the following data about your GitHub account and repositories: + + + + However it only uses the data in bold, everything else is provided as a side effect of the scope that it uses with the GitHub API. +
+ +

What is is stored in your servers?

+ +
+ RetroGit does not persist any commit messages or source code from your repositories on its servers (GitHub API responses may be cached in memory for a short period). Digests are generated dynamically when they need to be sent out. What ends up being stored is (see the Account struct for details): + + + + There is also a per-user map of the timestamp of the oldest commit for each repository, since this is expensive to compute. +
+ +

Can I run my own instance?

+ +
+ RetroGit's source is available and it runs on the App Engine Go Runtime, so you can easily start your own instance. It is not very resource intensive -- single user accounts should definitely fit within the free daily quota. +
+ +

Can I delete my account?

+ +
+ Yes, this can be done via the settings page. You can also revoke RetroGit's access to your account via the GitHub authorized applications page. +
+ +{{end}}