This can be re-implemented later.
if @report.save
@report.issue.save
# FIXME: reopen issue if necessary
- # FIXME: new issue notification (or via model observer)
redirect_to root_path, :notice => t("issues.create.successful_report")
else
redirect_to new_report_path(:reportable_type => @report.issue.reportable_type, :reportable_id => @report.issue.reportable_id), :notice => t("issues.create.provide_details")
end
end
- def new_issue_notification(issue_id, recipient)
- with_recipient_locale recipient do
- @url = url_for(:host => SERVER_URL,
- :controller => "issues",
- :action => "show",
- :id => issue_id)
- subject = I18n.t("notifier.new_issue_notification.subject")
- mail :to => recipient.email, :subject => subject
- end
- end
-
private
def set_shared_template_vars
+++ /dev/null
-<p><%= t("notifier.new_issue_notification.greeting") %></p>
-
-<p><%= t("notifier.new_issue_notification.new_issue") %></p>
-
-<p><%= link_to t("notifier.new_issue_notification.url"), @url %></p>
\ No newline at end of file
partial_changeset_without_comment: "without comment"
details: "More details about the changeset can be found at %{url}."
unsubscribe: 'To unsubscribe from updates to this changeset, visit %{url} and click "Unsubscribe".'
- new_issue_notification:
- subject: "[OpenStreetMap] New Issue"
- greeting: "Hi,"
- new_issue: "A new issue has been created"
- url: You can view the issue here
message:
inbox:
title: "Inbox"