Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
70aae6b8
Commit
70aae6b8
authored
May 11, 2014
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid hardcoding message HTML, use template tag for that
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
6395d30b
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
35 deletions
+9
-35
weblate/html/accounts/email.html
weblate/html/accounts/email.html
+2
-7
weblate/html/accounts/login.html
weblate/html/accounts/login.html
+2
-7
weblate/html/accounts/profile.html
weblate/html/accounts/profile.html
+1
-7
weblate/html/accounts/register.html
weblate/html/accounts/register.html
+2
-7
weblate/html/accounts/reset.html
weblate/html/accounts/reset.html
+2
-7
No files found.
weblate/html/accounts/email.html
View file @
70aae6b8
{% extends "base.html" %}
{% load url from future %}
{% load i18n %}
{% load translations %}
{% block content %}
<h2>
{% trans "Register email" %}
</h2>
{% if form.errors %}
<div
class=
"ui-widget"
>
<div
style=
"padding: 0pt 0.7em;"
class=
"ui-state-error ui-corner-all"
>
<p><span
style=
"float: left; margin-right: 0.3em;"
class=
"ui-icon ui-icon-alert"
></span>
{% trans "Please fix errors in registration form." %}
</p>
</div>
</div>
{% show_message "error" _("Please fix errors in the registration form.") %}
{% endif %}
<form
action=
"{% url 'social:complete' "
email
"
%}"
method=
"post"
accept-charset=
"utf-8"
>
...
...
weblate/html/accounts/login.html
View file @
70aae6b8
{% extends "base.html" %}
{% load url from future %}
{% load i18n %}
{% load translations %}
{% block content %}
{% if form.errors %}
<div
class=
"ui-widget"
>
<div
style=
"padding: 0pt 0.7em;"
class=
"ui-state-error ui-corner-all"
>
<p><span
style=
"float: left; margin-right: 0.3em;"
class=
"ui-icon ui-icon-alert"
></span>
{% trans "This username/password combination was not found. Please try again." %}
</p>
</div>
</div>
{% show_message "error" _("This username/password combination was not found. Please try again.") %}
{% endif %}
<h2>
{% trans "Password login" %}
</h2>
...
...
weblate/html/accounts/profile.html
View file @
70aae6b8
...
...
@@ -6,13 +6,7 @@
{% block content %}
{% if form.errors or userform.errors or subscriptionform.errors %}
<div
class=
"ui-widget"
>
<div
style=
"padding: 0pt 0.7em;"
class=
"ui-state-error ui-corner-all"
>
<p><span
style=
"float: left; margin-right: 0.3em;"
class=
"ui-icon ui-icon-alert"
></span>
{% trans "Please fix errors in the form." %}
</p>
</div>
</div>
{% show_message "error" _("Please fix errors in the form.") %}
{% endif %}
<form
method=
"post"
action=
"{% url 'profile' %}"
>
...
...
weblate/html/accounts/register.html
View file @
70aae6b8
{% extends "base.html" %}
{% load url from future %}
{% load i18n %}
{% load translations %}
{% block content %}
...
...
@@ -17,13 +18,7 @@
<h2>
{% trans "Register using email" %}
</h2>
{% if form.errors %}
<div
class=
"ui-widget"
>
<div
style=
"padding: 0pt 0.7em;"
class=
"ui-state-error ui-corner-all"
>
<p><span
style=
"float: left; margin-right: 0.3em;"
class=
"ui-icon ui-icon-alert"
></span>
{% trans "Please fix errors in registration form." %}
</p>
</div>
</div>
{% show_message "error" _("Please fix errors in the registration form.") %}
{% endif %}
<form
action=
"{% url 'register' %}"
method=
"post"
accept-charset=
"utf-8"
>
...
...
weblate/html/accounts/reset.html
View file @
70aae6b8
{% extends "base.html" %}
{% load url from future %}
{% load i18n %}
{% load translations %}
{% block content %}
...
...
@@ -9,13 +10,7 @@
<p>
{% trans "Forgotten your password? Enter your e-mail address below, and we'll e-mail instructions for setting a new one." %}
</p>
{% if form.errors %}
<div
class=
"ui-widget"
>
<div
style=
"padding: 0pt 0.7em;"
class=
"ui-state-error ui-corner-all"
>
<p><span
style=
"float: left; margin-right: 0.3em;"
class=
"ui-icon ui-icon-alert"
></span>
{% trans "Please fix errors in registration form." %}
</p>
</div>
</div>
{% show_message "error" _("Please fix errors in the registration form.") %}
{% endif %}
<form
action=
"{% url 'password_reset' %}"
method=
"post"
accept-charset=
"utf-8"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment