From 9125c8072a383576510e8368d9480e3b3e90a328 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 27 Oct 2013 11:28:40 +0100 Subject: [PATCH] move screenshots to own view, remove features from home view (features are in docs, don't duplicate) remove links to individual static screenshots, they break the slideshow fix spacing on home view, so footer is at bottom --- nsupdate/main/templates/main/about.html | 6 ++ nsupdate/main/templates/main/home.html | 55 ++----------------- nsupdate/main/templates/main/screenshots.html | 28 ++++++++++ nsupdate/main/urls.py | 3 +- nsupdate/main/views.py | 9 +++ 5 files changed, 50 insertions(+), 51 deletions(-) create mode 100644 nsupdate/main/templates/main/screenshots.html diff --git a/nsupdate/main/templates/main/about.html b/nsupdate/main/templates/main/about.html index efc0338..170a75c 100644 --- a/nsupdate/main/templates/main/about.html +++ b/nsupdate/main/templates/main/about.html @@ -12,6 +12,12 @@ client) can update a hostname, so you don't need to know or find out your current IP address.

+

Screenshots?

+

+ We made some + screenshots + for you so you can see what you get without having to create an account first. +

Why another one?

We wanted a simple, usable, secure and free dynamic dns service. diff --git a/nsupdate/main/templates/main/home.html b/nsupdate/main/templates/main/home.html index 45373dc..b471ebe 100644 --- a/nsupdate/main/templates/main/home.html +++ b/nsupdate/main/templates/main/home.html @@ -2,10 +2,9 @@ {% load bootstrap %} {% load static %} -{% block header %} - -

-
+{% block content %} +
+

Your IP(s):

{% if request.session.ipv4 %}

{{request.session.ipv4}}

@@ -16,12 +15,7 @@

nsupdate.info - the Dynamic DNS service you waited for.

-
-
- -{% endblock %} - -{% block content %} +
@@ -51,44 +45,5 @@

-
-
-
- -
-

Features

-

- Easy to use
- IP v4 and v6 support
- No spam, no nagging, no crap
- Free and Open-Source
-

-
-
-
-
-

Screenshots

- - Responsive image - - -
-
-
- -
+
{% endblock %} diff --git a/nsupdate/main/templates/main/screenshots.html b/nsupdate/main/templates/main/screenshots.html new file mode 100644 index 0000000..1833128 --- /dev/null +++ b/nsupdate/main/templates/main/screenshots.html @@ -0,0 +1,28 @@ +{% extends "base.html" %} +{% load bootstrap %} +{% load static %} + +{% block content %} +
+
+
+

Screenshots

+ Responsive image + +
+
+
+{% endblock %} diff --git a/nsupdate/main/urls.py b/nsupdate/main/urls.py index f34d2e4..dacd1f9 100644 --- a/nsupdate/main/urls.py +++ b/nsupdate/main/urls.py @@ -3,7 +3,7 @@ from django.views.generic import TemplateView from .views import ( HomeView, OverviewView, HostView, DeleteHostView, AboutView, HelpView, GenerateSecretView, - RobotsTxtView, DomainOverwievView, DeleteDomainView) + RobotsTxtView, DomainOverwievView, DeleteDomainView, ScreenshotsView) from ..api.views import ( MyIpView, DetectIpView, NicUpdateView, AuthorizedNicUpdateView) @@ -15,6 +15,7 @@ urlpatterns = patterns( url(r'^legal/$', TemplateView.as_view(template_name='main/legal.html'), name="legal"), url(r'^help/$', HelpView.as_view(), name="help"), + url(r'^screenshots/$', ScreenshotsView.as_view(), name="screenshots"), url(r'^overview/$', OverviewView.as_view(), name='overview'), url(r'^host/(?P\d+)/$', HostView.as_view(), name='host_view'), url(r'^generate_secret/(?P\d+)/$', GenerateSecretView.as_view(), name='generate_secret_view'), diff --git a/nsupdate/main/views.py b/nsupdate/main/views.py index 333431f..4f68865 100644 --- a/nsupdate/main/views.py +++ b/nsupdate/main/views.py @@ -76,6 +76,15 @@ class HelpView(TemplateView): return context +class ScreenshotsView(TemplateView): + template_name = "main/screenshots.html" + + def get_context_data(self, *args, **kwargs): + context = super(ScreenshotsView, self).get_context_data(*args, **kwargs) + context['nav_help'] = True + return context + + class OverviewView(CreateView): model = Host template_name = "main/overview.html"