email_configuration.test.subject=Subject
email_configuration.test.subject_text=Test Message from SonarQube
email_configuration.test.message=Message
-email_configuration.test.message_text=This is a test message from SonarQube
+email_configuration.test.message_text=This is a test message from SonarQube at
email_configuration.test.send=Send Test Email
email_configuration.test.sending=Sending Test Email
email_configuration.test.email_was_sent_to_x=Email was sent to {0}
@smtp_password = Property.value(configuration::SMTP_PASSWORD, nil, configuration::SMTP_PASSWORD_DEFAULT)
@email_from = Property.value(configuration::FROM, nil, configuration::FROM_DEFAULT)
@email_prefix = Property.value(configuration::PREFIX, nil, configuration::PREFIX_DEFAULT)
+ @server_base_url = Property.value(properties::SERVER_BASE_URL, nil, properties::SERVER_BASE_URL_DEFAULT_VALUE)
params[:layout]='false'
end
java_facade.getComponentByClassname('emailnotifications', 'org.sonar.api.config.EmailSettings').class
end
+ def properties
+ Java::OrgSonarApi::CoreProperties
+ end
+
end
</tr>
<tr class="property">
<th><label for="message"><h3><%= message('email_configuration.test.message') -%></h3></label></th>
- <td><%= text_area_tag 'message', message('email_configuration.test.message_text'), {:cols => 40, :rows => 6} %></td>
+ <td><%= text_area_tag 'message', message('email_configuration.test.message_text') + ' ' + @server_base_url, {:cols => 40, :rows => 6} %></td>
</tr>
</tbody>
</table>