Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
77e2ad52
Commit
77e2ad52
authored
Feb 02, 2012
by
root
Browse files
Change user object in invitations template.
parent
d6ae71a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
astakos/im/templates/invitations.html
View file @
77e2ad52
...
...
@@ -4,7 +4,7 @@
{% block body %}
<div
class=
"container"
>
<h3>
You have {{
us
er.invitations }} invitation{{
us
er.invitations|pluralize }} left.
</h3>
<h3>
You have {{
invit
er.invitations }} invitation{{
invit
er.invitations|pluralize }} left.
</h3>
<table
class=
"zebra-striped id-sorted"
>
<thead>
...
...
@@ -25,7 +25,7 @@
</tbody>
</table>
{% if
us
er.invitations %}
{% if
invit
er.invitations %}
<br
/>
<h4>
Invite someone else:
</h4>
<form
action=
"{% url astakos.im.views.invite %}"
method=
"post"
>
{% csrf_token %}
...
...
astakos/im/views.py
View file @
77e2ad52
...
...
@@ -215,7 +215,7 @@ def invite(request, template_name='invitations.html', extra_context={}):
'realname'
:
inv
.
realname
,
'is_consumed'
:
inv
.
is_consumed
}
for
inv
in
inviter
.
invitations_sent
.
all
()]
kwargs
=
{
'
us
er'
:
inviter
,
kwargs
=
{
'
invit
er'
:
inviter
,
'sent'
:
sent
}
context
=
get_context
(
request
,
extra_context
,
**
kwargs
)
return
render_response
(
template_name
,
...
...
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