Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2937f3c4
authored
Apr 06, 2015
by
Bach Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: fix tx notifications
parent
04cbc0b5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
11 deletions
+11
-11
circle/dashboard/views/template.py
+1
-1
circle/dashboard/views/util.py
+3
-3
circle/dashboard/views/vm.py
+1
-1
circle/locale/hu/LC_MESSAGES/django.po
+6
-6
No files found.
circle/dashboard/views/template.py
View file @
2937f3c4
...
@@ -441,7 +441,7 @@ class TransferTemplateOwnershipView(TransferOwnershipView):
...
@@ -441,7 +441,7 @@ class TransferTemplateOwnershipView(TransferOwnershipView):
confirm_view
=
TransferTemplateOwnershipConfirmView
confirm_view
=
TransferTemplateOwnershipConfirmView
model
=
InstanceTemplate
model
=
InstanceTemplate
notification_msg
=
ugettext_noop
(
notification_msg
=
ugettext_noop
(
'
%(
us
er)
s offered you to take the ownership of '
'
%(
own
er)
s offered you to take the ownership of '
'his/her template called
%(instance)
s. '
'his/her template called
%(instance)
s. '
'<a href="
%(token)
s" '
'<a href="
%(token)
s" '
'class="btn btn-success btn-small">Accept</a>'
)
'class="btn btn-success btn-small">Accept</a>'
)
...
...
circle/dashboard/views/util.py
View file @
2937f3c4
...
@@ -610,7 +610,7 @@ class TransferOwnershipView(CheckedDetailView, DetailView):
...
@@ -610,7 +610,7 @@ class TransferOwnershipView(CheckedDetailView, DetailView):
new_owner
.
profile
.
notify
(
new_owner
.
profile
.
notify
(
ugettext_noop
(
'Ownership offer'
),
ugettext_noop
(
'Ownership offer'
),
self
.
notification_msg
,
self
.
notification_msg
,
{
'instance'
:
obj
,
'token'
:
token_path
})
{
'instance'
:
obj
,
'token'
:
token_path
,
'owner'
:
request
.
user
})
except
Profile
.
DoesNotExist
:
except
Profile
.
DoesNotExist
:
messages
.
error
(
request
,
_
(
'Can not notify selected user.'
))
messages
.
error
(
request
,
_
(
'Can not notify selected user.'
))
else
:
else
:
...
@@ -665,8 +665,8 @@ class TransferOwnershipConfirmView(LoginRequiredMixin, View):
...
@@ -665,8 +665,8 @@ class TransferOwnershipConfirmView(LoginRequiredMixin, View):
old
.
profile
.
notify
(
old
.
profile
.
notify
(
ugettext_noop
(
'Ownership accepted'
),
ugettext_noop
(
'Ownership accepted'
),
ugettext_noop
(
'Your ownership offer of
%(instance)
s has been '
ugettext_noop
(
'Your ownership offer of
%(instance)
s has been '
'accepted by
%(
us
er)
s.'
),
'accepted by
%(
own
er)
s.'
),
{
'instance'
:
instance
})
{
'instance'
:
instance
,
'owner'
:
request
.
user
})
return
redirect
(
instance
.
get_absolute_url
())
return
redirect
(
instance
.
get_absolute_url
())
def
get_instance
(
self
,
key
,
user
):
def
get_instance
(
self
,
key
,
user
):
...
...
circle/dashboard/views/vm.py
View file @
2937f3c4
...
@@ -1297,7 +1297,7 @@ class TransferInstanceOwnershipView(TransferOwnershipView):
...
@@ -1297,7 +1297,7 @@ class TransferInstanceOwnershipView(TransferOwnershipView):
confirm_view
=
TransferInstanceOwnershipConfirmView
confirm_view
=
TransferInstanceOwnershipConfirmView
model
=
Instance
model
=
Instance
notification_msg
=
ugettext_noop
(
notification_msg
=
ugettext_noop
(
'
%(
us
er)
s offered you to take the ownership of '
'
%(
own
er)
s offered you to take the ownership of '
'his/her virtual machine called
%(instance)
s. '
'his/her virtual machine called
%(instance)
s. '
'<a href="
%(token)
s" '
'<a href="
%(token)
s" '
'class="btn btn-success btn-small">Accept</a>'
)
'class="btn btn-success btn-small">Accept</a>'
)
...
...
circle/locale/hu/LC_MESSAGES/django.po
View file @
2937f3c4
...
@@ -2686,11 +2686,11 @@ msgstr ""
...
@@ -2686,11 +2686,11 @@ msgstr ""
#: dashboard/views/template.py:444
#: dashboard/views/template.py:444
#, python-format
#, python-format
msgid ""
msgid ""
"%(
us
er)s offered you to take the ownership of his/her template called "
"%(
own
er)s offered you to take the ownership of his/her template called "
"%(instance)s. <a href=\"%(token)s\" class=\"btn btn-success btn-"
"%(instance)s. <a href=\"%(token)s\" class=\"btn btn-success btn-"
"small\">Accept</a>"
"small\">Accept</a>"
msgstr ""
msgstr ""
"%(
us
er)s át kívánja ruházni %(instance)s nevű sablonját Önre. <a "
"%(
own
er)s át kívánja ruházni %(instance)s nevű sablonját Önre. <a "
"href=\"%(token)s\" class=\"btn btn-success btn-small\">Elfogadás</a>"
"href=\"%(token)s\" class=\"btn btn-success btn-small\">Elfogadás</a>"
#: dashboard/views/user.py:150
#: dashboard/views/user.py:150
...
@@ -2856,8 +2856,8 @@ msgstr "Átruházás elfogadva"
...
@@ -2856,8 +2856,8 @@ msgstr "Átruházás elfogadva"
#: dashboard/views/util.py:667
#: dashboard/views/util.py:667
#, python-format
#, python-format
msgid "Your ownership offer of %(instance)s has been accepted by %(
us
er)s."
msgid "Your ownership offer of %(instance)s has been accepted by %(
own
er)s."
msgstr "%(instance)s gépre vonatkozó átruházási ajánlatát elfogadta %(
us
er)s."
msgstr "%(instance)s gépre vonatkozó átruházási ajánlatát elfogadta %(
own
er)s."
#: dashboard/views/util.py:716
#: dashboard/views/util.py:716
msgid "Only the owners can delete the selected object."
msgid "Only the owners can delete the selected object."
...
@@ -2924,11 +2924,11 @@ msgstr "tulajdon átruházása"
...
@@ -2924,11 +2924,11 @@ msgstr "tulajdon átruházása"
#: dashboard/views/vm.py:1300
#: dashboard/views/vm.py:1300
#, python-format
#, python-format
msgid ""
msgid ""
"%(
us
er)s offered you to take the ownership of his/her virtual machine called"
"%(
own
er)s offered you to take the ownership of his/her virtual machine called"
" %(instance)s. <a href=\"%(token)s\" class=\"btn btn-success btn-"
" %(instance)s. <a href=\"%(token)s\" class=\"btn btn-success btn-"
"small\">Accept</a>"
"small\">Accept</a>"
msgstr ""
msgstr ""
"%(
us
er)s át kívánja ruházni %(instance)s nevű virtuális gépét Önre. <a "
"%(
own
er)s át kívánja ruházni %(instance)s nevű virtuális gépét Önre. <a "
"href=\"%(token)s\" class=\"btn btn-success btn-small\">Elfogadás</a>"
"href=\"%(token)s\" class=\"btn btn-success btn-small\">Elfogadás</a>"
#: firewall/fields.py:42
#: firewall/fields.py:42
...
...
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