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
05783ebc
Commit
05783ebc
authored
Mar 04, 2016
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify where subscriptions are used
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
a76bf962
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
weblate/accounts/forms.py
weblate/accounts/forms.py
+0
-1
weblate/accounts/models.py
weblate/accounts/models.py
+4
-0
weblate/html/accounts/profile.html
weblate/html/accounts/profile.html
+1
-0
No files found.
weblate/accounts/forms.py
View file @
05783ebc
...
@@ -197,7 +197,6 @@ class SubscriptionForm(forms.ModelForm):
...
@@ -197,7 +197,6 @@ class SubscriptionForm(forms.ModelForm):
super(SubscriptionForm, self).__init__(*args, **kwargs)
super(SubscriptionForm, self).__init__(*args, **kwargs)
user = kwargs['
instance
'].user
user = kwargs['
instance
'].user
self.fields['
subscriptions
'].help_text = None
self.fields['
subscriptions
'].required = False
self.fields['
subscriptions
'].required = False
self.fields['
subscriptions
'].queryset = Project.objects.all_acl(user)
self.fields['
subscriptions
'].queryset = Project.objects.all_acl(user)
...
...
weblate/accounts/models.py
View file @
05783ebc
...
@@ -580,6 +580,10 @@ class Profile(models.Model):
...
@@ -580,6 +580,10 @@ class Profile(models.Model):
subscriptions
=
models
.
ManyToManyField
(
subscriptions
=
models
.
ManyToManyField
(
'trans.Project'
,
'trans.Project'
,
verbose_name
=
_
(
'Subscribed projects'
),
verbose_name
=
_
(
'Subscribed projects'
),
help_text
=
_
(
'You can receive notifications for subscribed projects and '
'they are shown on dashboard by default.'
),
blank
=
True
,
blank
=
True
,
)
)
...
...
weblate/html/accounts/profile.html
View file @
05783ebc
...
@@ -124,6 +124,7 @@
...
@@ -124,6 +124,7 @@
<div
class=
"panel-heading"
><h4
class=
"panel-title"
>
{% trans "Description" %}
</h4></div>
<div
class=
"panel-heading"
><h4
class=
"panel-title"
>
{% trans "Description" %}
</h4></div>
<div
class=
"panel-body"
>
<div
class=
"panel-body"
>
<p>
{% trans "You will receive chosen notifications via email for all your languages." %}
</p>
<p>
{% trans "You will receive chosen notifications via email for all your languages." %}
</p>
<p>
{% trans "Subscribed projects are also shown on dashboard, so choose all projects you want to translate." %}
</p>
</div>
</div>
<div
class=
"panel-footer"
>
<div
class=
"panel-footer"
>
<a
class=
"btn btn-default"
href=
"{% documentation 'user/profile' 'subscriptions' %}"
>
{% trans "Documentation" %}
</a>
<a
class=
"btn btn-default"
href=
"{% documentation 'user/profile' 'subscriptions' %}"
>
{% trans "Documentation" %}
</a>
...
...
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