diff --git a/.travis.yml b/.travis.yml index a03e6fd..484ed0b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,14 +13,14 @@ env: - TEST_OPTS="" - COVERAGE="" matrix: - - DJANGO=1.7.0 + - DJANGO=1.7.1 matrix: exclude: - python: "2.7" - env: DJANGO=1.7.0 + env: DJANGO=1.7.1 include: - python: "2.7" - env: DJANGO=1.7.0 COVERAGE="coverage run -m" TEST_K="" TEST_OPTS="--pep8" + env: DJANGO=1.7.1 COVERAGE="coverage run -m" TEST_K="" TEST_OPTS="--pep8" install: - "pip install --use-mirrors Django==$DJANGO" - "pip install --use-mirrors -r requirements.d/travis.txt" diff --git a/nsupdate/accounts/templates/registration/activate.html b/nsupdate/accounts/templates/registration/activate.html index af3efb0..c7cb554 100644 --- a/nsupdate/accounts/templates/registration/activate.html +++ b/nsupdate/accounts/templates/registration/activate.html @@ -2,13 +2,14 @@ {% load i18n %}{% load bootstrap %} {% url 'auth_login' as auth_login_url %} {% block title %}{% if account %}{% trans "Activation complete" %}{% else %}{% trans "Activation problem" %}{% endif %}{% endblock %} + {% block content %} {% if account %} -{% blocktrans %} -Thanks {{ account }}, activation complete! -You may now login using the username and password you set at registration. -{% endblocktrans %} +

{% trans 'Thanks, activation complete!' %}

+

{% trans 'You may now login using the username and password you set at registration.' %}

+

{% else %} -{% blocktrans %}Oops -- it seems that your activation key is invalid. Please check the url again.{% endblocktrans %} +

{% trans 'Oops' %}

+

{% trans 'it seems that your activation key is invalid. Please check the url again.' %}

{% endif %} {% endblock %} diff --git a/nsupdate/accounts/templates/registration/activation_complete.html b/nsupdate/accounts/templates/registration/activation_complete.html index 6bcdf4c..2107453 100644 --- a/nsupdate/accounts/templates/registration/activation_complete.html +++ b/nsupdate/accounts/templates/registration/activation_complete.html @@ -1,9 +1,9 @@ {% extends "registration/registration_base.html" %} {% load i18n %}{% load bootstrap %} -{% block title %}Activation complete{% endblock %} +{% block title %}{% trans 'Activation complete' %}{% endblock %} + {% block content %} -

Thanks, activation complete!

-

You may now login using the username and password you set at registration.

+

{% trans 'Thanks, activation complete!' %}

+

{% trans 'You may now login using the username and password you set at registration.' %}

+

{% endblock %} - - diff --git a/nsupdate/accounts/templates/registration/registration_complete.html b/nsupdate/accounts/templates/registration/registration_complete.html index 4cf3b7e..b6047cb 100644 --- a/nsupdate/accounts/templates/registration/registration_complete.html +++ b/nsupdate/accounts/templates/registration/registration_complete.html @@ -1,8 +1,8 @@ {% extends "registration/registration_base.html" %} {% load i18n %}{% load bootstrap %} -{% block title %}{% trans "Activation email sent" %}{% endblock %} -{% block content %} -{% blocktrans %}An activation email has been sent. -Please check your email and click on the link to activate your account.{% endblocktrans %} -{% endblock %} +{% block title %}{% trans 'Activation email sent' %}{% endblock %} +{% block content %} +

{% trans 'An activation email has been sent.' %}

+

{% trans 'Please check your email and click on the link to activate your account.' %}

+{% endblock %} diff --git a/nsupdate/accounts/templates/registration/registration_form.html b/nsupdate/accounts/templates/registration/registration_form.html index ce70035..830249b 100644 --- a/nsupdate/accounts/templates/registration/registration_form.html +++ b/nsupdate/accounts/templates/registration/registration_form.html @@ -1,10 +1,10 @@ {% extends "registration/registration_base.html" %} {% load i18n %}{% load bootstrap %} -{% load bootstrap %} {% block title %}{% trans "Register for an account" %}{% endblock %} + {% block content %}
-
+

{% trans "No registration required for testing" %}

{% trans "You can easily test the service and see what you get." %} @@ -34,7 +34,7 @@ finishing your initial evaluation.{% endblocktrans %}

-
+

{% trans "Register new account" %}

{% blocktrans %} @@ -43,15 +43,17 @@ E-Mail address: must be a working one, we'll send you an activation E-Mail there.
Password: please use a sane one, we trust you.{% endblocktrans %}

-
+
+ {% csrf_token %} - {{ form|bootstrap_horizontal }} + {{ form|bootstrap_horizontal:"col-sm-3 col-lg-3" }}
-
+
+ {% endblock %} diff --git a/nsupdate/login/templates/login.html b/nsupdate/login/templates/login.html index 3424e49..941b196 100644 --- a/nsupdate/login/templates/login.html +++ b/nsupdate/login/templates/login.html @@ -12,18 +12,17 @@ {% endif %}
{% csrf_token %} - {{ form|bootstrap_horizontal }} + {{ form|bootstrap_horizontal:"col-sm-3 col-lg-3" }}
-
+
- diff --git a/nsupdate/login/templates/logout.html b/nsupdate/login/templates/logout.html index d831964..d24bdbf 100644 --- a/nsupdate/login/templates/logout.html +++ b/nsupdate/login/templates/logout.html @@ -1,6 +1,7 @@ {% extends "base.html" %} {% load i18n %}{% load bootstrap %} {% block title %}{% trans "Log out" %}{% endblock %} + {% block content %}