{% trans %} on .html files

This commit is contained in:
mandrag0ra 2014-05-23 17:22:32 +02:00
parent 65e7654c5a
commit e264b10fd6
7 changed files with 10 additions and 11 deletions

View File

@ -1,11 +1,10 @@
{% extends "base.html" %}
{% load i18n %}
{% load bootstrap %}
{% load i18n %}{% load bootstrap %}
{% block content %}
<div class="row">
<div class="col-md-7">
<h2>User Profile of {{ request.user.username }}</h2>
<h2>{% trans "User Profile of" %} {{ request.user.username }}</h2>
<hr />
<form class="form-horizontal" role="form" method="post">
{% csrf_token %}
@ -18,14 +17,14 @@
</form>
</div>
<div class="col-md-5">
<h3>Associate with remote Account</h3>
<h3>{% trans "Associate with remote Account" %}</h3>
{% for backend in backends.not_associated %}
<form method="get" action="{% url 'social:begin' backend %}"
style="display: inline-block;">
<button type="submit" class="btn btn-xs btn-success">{{ backend }}</button>
</form>
{% endfor %}
<h3>Deassociate from remote Account</h3>
<h3>{% trans "Deassociate from remote Account" %}</h3>
{% for socauth in backends.associated %}
<form method="post" action="{% url 'social:disconnect_individual' socauth.provider socauth.pk %}"
style="display: inline-block;">

View File

@ -1,5 +1,5 @@
{% extends "registration/registration_base.html" %}
{% load i18n %}
{% 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 %}

View File

@ -1,5 +1,5 @@
{% extends "registration/registration_base.html" %}
{% load i18n %}
{% load i18n %}{% load bootstrap %}
{% block title %}Activation complete{% endblock %}
{% block content %}
<h1>Thanks, activation complete!</h1>

View File

@ -1,4 +1,4 @@
{% load i18n %}
{% load i18n %}{% load bootstrap %}
{% comment %}
This template is used for the html alternative of the activation email
if you use a django-registration backend that looks for it. e.g.

View File

@ -1,2 +1,2 @@
{% extends "base.html" %}
{% load i18n %}
{% load i18n %}{% load bootstrap %}

View File

@ -1,5 +1,5 @@
{% extends "registration/registration_base.html" %}
{% load i18n %}
{% load i18n %}{% load bootstrap %}
{% block title %}{% trans "Activation email sent" %}{% endblock %}
{% block content %}
{% blocktrans %}An activation email has been sent.

View File

@ -1,5 +1,5 @@
{% extends "registration/registration_base.html" %}
{% load i18n %}
{% load i18n %}{% load bootstrap %}
{% load bootstrap %}
{% block title %}{% trans "Register for an account" %}{% endblock %}
{% block content %}