Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

add reply tokens in reviewer emails (Bug 879535) #898

Closed
wants to merge 1 commit into from

Conversation

dash1291
Copy link
Contributor

No description provided.

# Include Mozilla contact.
if thread.read_permission_mozilla_contact:
if thread.addon.mozilla_contact:
recipients.append(thread.addon.mozilla_contact)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be [x.split() for x in thread.addon.mozilla_contact.split(',')], right?

@cvan
Copy link
Contributor

cvan commented Jul 23, 2013

looks good; let me know when these things are addressed

{% block content %}
{% trans -%}
A user posted on a discussion of {{ name }}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when you use a {% trans %} tag all the whitespace (i.e., newlines) gets collapsed ;)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was inspired by this

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, that example is wrong

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you fix?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can something like {% blocktrans %} be used here ?

@cvan
Copy link
Contributor

cvan commented Jul 26, 2013

fix those things and this looks good to merge

emails, perm_setting='app_reviewed', cc=cc_email,
attachments=self.get_attachments())

if self.comm_thread and waffle.switch_is_active('comm_emails'):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

waffle name = 'comm-dashboard' :/

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eek, good call

@cvan
Copy link
Contributor

cvan commented Aug 7, 2013

r+wc

@@ -0,0 +1,8 @@
{% extends 'reviewers/emails/base.txt' -%}
{% block content %}
{{ _('A user posted on a discussion of {0}.', name) }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{{ _('A user posted on a discussion of {name}.')|f(name=name) }}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could probably use an L10n comment.

thread=self.thread, note_type=0, body='something',
read_permission_developer=True)
res = self.client.post(reverse('comm-note-replies-list',
kwargs={'thread_id': self.thread.id,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

almost lines up

@robhudson
Copy link
Member

r+wc

@dash1291
Copy link
Contributor Author

dash1291 commented Aug 9, 2013

merged 600e47

@dash1291 dash1291 closed this Aug 9, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
6 participants