From 924b9ad3adbb2ea8e82362f6d9951edddef53687 Mon Sep 17 00:00:00 2001 From: Fabian Weisshaar Date: Sun, 29 Dec 2013 21:44:40 +0100 Subject: [PATCH 01/14] add ModelAdmin for DomainAdmin, HostAdmin and BlacklistedDomainAdmin --- nsupdate/main/admin.py | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/nsupdate/main/admin.py b/nsupdate/main/admin.py index ef3c134..5ad9f41 100644 --- a/nsupdate/main/admin.py +++ b/nsupdate/main/admin.py @@ -6,8 +6,24 @@ from django.contrib import admin from .models import Host, Domain, BlacklistedDomain, ServiceUpdater, ServiceUpdaterHostConfig -admin.site.register(BlacklistedDomain) -admin.site.register(Domain) -admin.site.register(Host) + +class DomainAdmin(admin.ModelAdmin): + list_display = ("domain", "public", "available", "created_by") + list_filter = ("public", "available", "created_by") + + +class HostAdmin(admin.ModelAdmin): + list_display = ("subdomain", "domain", "abuse_blocked") + list_filter = ("domain", "created_by", "abuse", "abuse_blocked") + + +class BlacklistedDomainAdmin(admin.ModelAdmin): + list_display = ("domain", "created_by") + list_filter = ("created_by", "created") + + +admin.site.register(BlacklistedDomain, BlacklistedDomainAdmin) +admin.site.register(Domain, DomainAdmin) +admin.site.register(Host, HostAdmin) admin.site.register(ServiceUpdater) admin.site.register(ServiceUpdaterHostConfig) From 47900ff37e5c9d831b3e8194555ea68efb498d93 Mon Sep 17 00:00:00 2001 From: Fabian Weisshaar Date: Sun, 29 Dec 2013 21:48:20 +0100 Subject: [PATCH 02/14] layout --- .../templates/accounts/user_profile.html | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/nsupdate/accounts/templates/accounts/user_profile.html b/nsupdate/accounts/templates/accounts/user_profile.html index f155ffc..e46b066 100644 --- a/nsupdate/accounts/templates/accounts/user_profile.html +++ b/nsupdate/accounts/templates/accounts/user_profile.html @@ -1,27 +1,31 @@ {% extends "base.html" %} +{% load i18n %} {% load bootstrap %} {% block content %}
-
-

User Profile of {{ request.user.username }}

-
+
+

User Profile of {{ request.user.username }}

+
+ {% csrf_token %} - {{ form|bootstrap }} - + {{ form|bootstrap_horizontal }} +
+
+ +
+
-
-
-
-

Associate with remote Account

+
+

Associate with remote Account

{% for backend in backends.not_associated %}
{% endfor %} -

Deassociate from remote Account

+

Deassociate from remote Account

{% for socauth in backends.associated %}
@@ -30,7 +34,5 @@
{% endfor %}
-
-
{% endblock %} From 0dc403ae0448eec49b9fb4c042e18467ea22f0c4 Mon Sep 17 00:00:00 2001 From: Fabian Weisshaar Date: Sun, 29 Dec 2013 22:16:22 +0100 Subject: [PATCH 03/14] change some links, move jquery to bottom and add some trans strings --- nsupdate/templates/base.html | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/nsupdate/templates/base.html b/nsupdate/templates/base.html index 6763734..3c6d2f5 100644 --- a/nsupdate/templates/base.html +++ b/nsupdate/templates/base.html @@ -1,4 +1,5 @@ {% load static from staticfiles %} +{% load i18n %} @@ -13,7 +14,6 @@ - {% include "includes/base_head.html" %} {% block html_head %}{% endblock %} @@ -32,41 +32,41 @@
+