Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(yes / no) -> ( yes / no ) in HTML #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions memberbot/chat_voting.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,28 +253,28 @@ def send(self, template, **data):
' Would you like to recast your votes? (yes/no)')
html = ('<p>You have already participated in this election.'
' Would you like to recast your votes? ('
'<a href="xmpp:{0}?message;type=chat;body=yes">yes</a> /'
' <a href="xmpp:{0}?message;type=chat;body=no">no</a>)</p>')
' <a href="xmpp:{0}?message;type=chat;body=yes">yes</a> /'
' <a href="xmpp:{0}?message;type=chat;body=no">no</a> )</p>')
html = html.format(self.xmpp.boundjid)
elif template == 'resume_voting':
text = ('You started voting, but have not finished.'
' Would you like to resume voting? (yes/no)')
html = ('<p>You started voting, but have not finished.'
' Would you like to resume voting? ('
'<a href="xmpp:{0}?message;type=chat;body=yes">yes</a> /'
' <a href="xmpp:{0}?message;type=chat;body=no">no</a>)</p>')
' <a href="xmpp:{0}?message;type=chat;body=yes">yes</a> /'
' <a href="xmpp:{0}?message;type=chat;body=no">no</a> )</p>')
html = html.format(self.xmpp.boundjid)
elif template == 'start_voting':
text = 'Would you like to cast your votes now? (yes/no)'
html = ('<p>Would you like to cast your votes now? ('
'<a href="xmpp:{0}?message;type=chat;body=yes">yes</a> /'
' <a href="xmpp:{0}?message;type=chat;body=no">no</a>)</p>')
' <a href="xmpp:{0}?message;type=chat;body=yes">yes</a> /'
' <a href="xmpp:{0}?message;type=chat;body=no">no</a> )</p>')
html = html.format(self.xmpp.boundjid)
elif template == 'approve_candidate':
text = 'Approve? (yes/no)'
html = ('<p>Approve? ('
'<a href="xmpp:{0}?message;type=chat;body=yes">yes</a> /'
' <a href="xmpp:{0}?message;type=chat;body=no">no</a>)</p>')
' <a href="xmpp:{0}?message;type=chat;body=yes">yes</a> /'
' <a href="xmpp:{0}?message;type=chat;body=no">no</a> )</p>')
html = html.format(self.xmpp.boundjid)
elif template == 'ballot_section':
text = '%s:' % data['title']
Expand Down