Get the invite function working.
This commit is contained in:
parent
765c08cdea
commit
e822de47df
2 changed files with 5 additions and 5 deletions
|
@ -519,7 +519,7 @@ class Group(controllers.Controller):
|
|||
a people person. You'll grow and learn as you work on a team with other
|
||||
very smart and talented people.
|
||||
|
||||
Fedora and FOSS are changing the world -- come be a part of it!''')) % {'name': user.human_name, 'email': user.emails['primary'].email}
|
||||
Fedora and FOSS are changing the world -- come be a part of it!''')) % {'name': person.human_name, 'email': person.emails['primary'].email}
|
||||
turbomail.enqueue(message)
|
||||
turbogears.flash(_('Message sent to: %s') % target)
|
||||
turbogears.redirect('/group/view/%s' % group.name)
|
||||
|
|
|
@ -8,19 +8,19 @@
|
|||
</head>
|
||||
<body>
|
||||
<h2>${_('Invite a new community member!')}</h2>
|
||||
<form method="post" action="${tg.url('/group/sendinvite/%s') % group}">
|
||||
<form method="post" action="${tg.url('/group/sendinvite/%s') % group.name}">
|
||||
<div>
|
||||
<!--TODO: Make the email translatable -->
|
||||
${_('To email:')} <input type="text" value="" name="target" /><br />
|
||||
${_('From:)} ${user.mail}<br />
|
||||
${_('From:')} ${person.emails['primary'].email}<br />
|
||||
${_('Subject:')} Invitation to join the Fedora Team!<br />
|
||||
${_('Message:')}
|
||||
<div class="message">
|
||||
<p>
|
||||
${user.givenName} <<a href="mailto: ${user.mail}">${user.mail}</a>> has invited you to join the Fedora
|
||||
${person.human_name} <<a href="mailto: ${person.emails['primary'].email}">${person.emails['primary'].email}</a>> has invited you to join the Fedora
|
||||
Project! We are a community of users and developers who produce a
|
||||
complete operating system from entirely free and open source software
|
||||
(FOSS). ${user.givenName} thinks that you have knowledge and skills
|
||||
(FOSS). ${person.human_name} thinks that you have knowledge and skills
|
||||
that make you a great fit for the Fedora community, and that you might
|
||||
be interested in contributing.
|
||||
</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue