From 2b0e70e59f2d9ef2e775d066c2e3d1dbfd0c68e3 Mon Sep 17 00:00:00 2001
From: Thomas Waldmann
Date: Sun, 3 Nov 2013 00:02:02 +0100
Subject: [PATCH] remove help view, move project info to docs, make about view
use settings
help: there was only a link to the rtd documentation (now directly linked from a "Documentation" navbar entry)
and some duplicate router configuration that was also shown (even with the correct values) when adding a host.
the help page html was not valid due to the values inserted into the router configuration help.
help/documentation policy: add static help to the docs, add dynamic help directly at the places (in the views) where needed
---
README.rst | 5 +++-
docs/index.rst | 1 +
docs/project.rst | 31 +++++++++++++++++++++++++
nsupdate/context_processors.py | 1 +
nsupdate/main/templates/main/about.html | 29 ++++++-----------------
nsupdate/settings.py | 1 +
6 files changed, 45 insertions(+), 23 deletions(-)
create mode 100644 docs/project.rst
diff --git a/README.rst b/README.rst
index f035fc7..f119507 100644
--- a/README.rst
+++ b/README.rst
@@ -1,11 +1,14 @@
About nsupdate.info
===================
-http://nsupdate.info is a free dynamic dns service.
+https://nsupdate.info is a free dynamic dns service.
nsupdate.info is also the name of the software used to implement it.
If you like, you can use it to host the service on your own server.
+The software project lives at:
+https://github.com/nsupdate-info/nsupdate.info
+
Features
========
diff --git a/docs/index.rst b/docs/index.rst
index f048fe6..a87dd2d 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -12,6 +12,7 @@ Welcome to nsupdate.info's documentation!
intro
user
admin
+ project
standards
security
diff --git a/docs/project.rst b/docs/project.rst
new file mode 100644
index 0000000..0bed529
--- /dev/null
+++ b/docs/project.rst
@@ -0,0 +1,31 @@
+==================================
+The nsupdate.info software Project
+==================================
+
+History
+=======
+
+The initial version of the nsupdate.info software was developed in 48h in the DjangoDash 2013 contest by:
+
+* `Arne Schauf `_
+* `Fabian Faessler `_
+* `Thomas Waldmann `_
+
+
+Project site
+============
+
+https://github.com/nsupdate-info/nsupdate.info
+
+
+Contributing
+============
+
+Feedback is welcome.
+
+If you find some issue, have some idea or some patch, please submit them via the issue tracker.
+
+Or even better: if you use git, fork our repo, make your changes and submit a pull request.
+
+For small fixes, you can even just edit the files on github (github will then fork, change and submit a pull request
+automatically).
diff --git a/nsupdate/context_processors.py b/nsupdate/context_processors.py
index da092fc..f732f89 100644
--- a/nsupdate/context_processors.py
+++ b/nsupdate/context_processors.py
@@ -16,6 +16,7 @@ def add_settings(request):
context['WWW_HOST'] = settings.WWW_HOST
context['WWW_IPV4_HOST'] = settings.WWW_IPV4_HOST
context['WWW_IPV6_HOST'] = settings.WWW_IPV6_HOST
+ context['SERVICE_CONTACT'] = settings.SERVICE_CONTACT # about view
return context
diff --git a/nsupdate/main/templates/main/about.html b/nsupdate/main/templates/main/about.html
index 170a75c..6a45a0d 100644
--- a/nsupdate/main/templates/main/about.html
+++ b/nsupdate/main/templates/main/about.html
@@ -2,20 +2,23 @@
{% load bootstrap %}
{% block content %}
-About the nsupdate.info service
+About the {{ WWW_HOST }} service
What's this?
- nsupdate.info is a dynamic dns service.
+ {{ WWW_HOST }} is a dynamic dns service.
You usually need it so your router (or other dyndns2-compatible
client) can update a hostname, so you don't need to know or find
out your current IP address.
- Screenshots?
+ Screenshots and Documentation?
We made some
screenshots
+ and
+ Documentation
for you so you can see what you get without having to create an account first.
Why another one?
@@ -49,27 +52,9 @@
This is a free service, there are no warranties. If it breaks, it breaks.
-About the nsupdate.info software project
- Where does the project live?
- The nsupdate.info project on GitHub.
-
- Found some issue or want to help?
-
- Feedback and help is welcome. Please use github to file issues to the
- issue tracker or contribute changes (either do a pull request [preferred]
- or attach a patch to an issue).
-
- Who developed the software?
-
- Arne Schauf,
- Fabian Faessler and
- Thomas Waldmann
- developed the initial version of the nsupdate.info software in 48h in the DjangoDash 2013 contest.
-
-
Contact
- info AT nsupdate DOT info
+ {{ SERVICE_CONTACT }}
{% endblock %}
diff --git a/nsupdate/settings.py b/nsupdate/settings.py
index 90211d3..2568f57 100644
--- a/nsupdate/settings.py
+++ b/nsupdate/settings.py
@@ -33,6 +33,7 @@ DATABASES = {
}
BASEDOMAIN = 'nsupdate.info'
+SERVICE_CONTACT = 'info AT nsupdate DOT info' # shown on "about" page
WWW_HOST = BASEDOMAIN
WWW_IPV4_HOST = 'ipv4.' + BASEDOMAIN
WWW_IPV6_HOST = 'ipv6.' + BASEDOMAIN