Skip to content

Commit

Permalink
Replace 'E-mail' with 'Email'. Fixes rockstor#2122
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Wilson committed Feb 4, 2020
1 parent c3a5c74 commit 5fb1963
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 17,691 deletions.
8,642 changes: 1 addition & 8,641 deletions src/rockstor/storageadmin/fixtures/test_disks.json

Large diffs are not rendered by default.

9,032 changes: 1 addition & 9,031 deletions src/rockstor/storageadmin/fixtures/test_pools.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<li><a id="documentation_nav" href="http://rockstor.com/docs" target="_blank">Documentation</a></li>
<li><a href="https://forum.rockstor.com/" target="_blank">Community forum</a></li>
<li><a href="https://github.com/rockstor/rockstor-core/issues?state=open" target="_blank">Issue tracker</a></li>
<li><a href="mailto:support@rockstor.com" target="_blank">Team e-mail</a></li>
<li><a href="mailto:support@rockstor.com" target="_blank">Team email</a></li>
</ul>
</li>
<li><a id="donate_nav" href="#"></i> Donate</a></li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,24 @@
{{#if isEmailNull}}
<div class="controls">
<div class="alert alert-warning">
<p>Rockstor can push notifications to you via e-mail. We recommend
creating a separate dedicated e-mail account for this purpose.
Rockstor will login to this e-mail account and use it to send
notifications to another specified e-mail address, such as your
<p>Rockstor can push notifications to you via email. We recommend
creating a separate dedicated email account for this purpose.
Rockstor will login to this email account and use it to send
notifications to another specified email address, such as your
personal gmail account.</p>
</div>
<button type="Submit" id="Add-email-address" class="btn btn-primary" title="Add an e-mail account to be used for sending notifications.">Add an E-mail account</button>
<button type="Submit" id="Add-email-address" class="btn btn-primary" title="Add an email account to be used for sending notifications.">Add an E-mail account</button>
{{else}}
<div class="alert alert-warning">
<p>Rockstor uses the credentials below to send e-mail notifications. Any
<p>Rockstor uses the credentials below to send email notifications. Any
system information sent to the root user results in a
notification. Rockstor assumes/uses the <b>Sender</b> account and from
that account sends e-mails to the <b>Receiver</b>
email address. The <b>Sender</b> e-mail account password is stored in
that account sends emails to the <b>Receiver</b>
email address. The <b>Sender</b> email account password is stored in
<code>/etc/postfix/sasl_passwd</code> which has restricted
permissions. However, we strongly recommend against using a personal
or important e-mail account for the <b>Sender</b>. On the other
hand the <b>Receiver</b> e-mail address can be anything you have
or important email account for the <b>Sender</b>. On the other
hand the <b>Receiver</b> email address can be anything you have
access to and is simply the recipient of the notifications.
</p>

Expand All @@ -69,7 +69,7 @@
<td>{{email.port}}</td>
<td>
<a href="#" class="email-delete" id="email-delete" rel="tooltip" title="Delete email"><i class="glyphicon glyphicon-trash"></i></a>
<a href="#" class="send-test-message" id="send-test-message" rel="tooltip" title="Send a test e-mail"><i class="glyphicon glyphicon-send"></i></a>
<a href="#" class="send-test-message" id="send-test-message" rel="tooltip" title="Send a test email"><i class="glyphicon glyphicon-send"></i></a>
</td>
</tr>
</tbody>
Expand All @@ -86,10 +86,10 @@
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
<h3 id="myModalLabel">Test e-mail sent successfully.</h3>
<h3 id="myModalLabel">Test email sent successfully.</h3>
</div>
<div class="modal-body">
<p>Test e-mail has been successfully queued to postfix. Your mail from <code>{{email.sender}}</code> to <code>{{email.receiver}}</code> could take up to several minutes to arrive. If you do not receive it, check <code>/var/log/maillog</code> for clues. You may want to verify the input, delete and add the E-mail account again.</p>
<p>Test email has been successfully queued to postfix. Your mail from <code>{{email.sender}}</code> to <code>{{email.receiver}}</code> could take up to several minutes to arrive. If you do not receive it, check <code>/var/log/maillog</code> for clues. You may want to verify the input, delete and add the E-mail account again.</p>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<div class="form-group">
<label class="col-sm-4 control-label" for="syscontact">System Contact<span class="required"> *</span></label>
<div class="col-sm-4">
<input class="form-control" type="text" id="syscontact" name="syscontact" value="{{config.syscontact}}" placeholder="System Contact" title="contact(e-mail) information for the administrator">
<input class="form-control" type="text" id="syscontact" name="syscontact" value="{{config.syscontact}}" placeholder="System Contact" title="contact(email) information for the administrator">
</div>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ $(document).ready(function(){
</p>
<ol>
<li>Purchase the Activation code by clicking <a href="http://shop.rockstor.com/products/stable-release-channel-subscription#applianceid={{applianceId}}" target="_blank">here.</a>
<li>The Activation code will be sent to you via e-mail.</li>
<li>The Activation code will be sent to you via email.</li>
<li>Come back to this screen and enter the Activation code.</li>
</ol>
Thanks for helping to support Rockstor's development.
Expand Down
2 changes: 1 addition & 1 deletion src/rockstor/storageadmin/tests/test_email_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def test_post_requests_1(self):
status.HTTP_500_INTERNAL_SERVER_ERROR,
msg=response.data)
e_msg = ('E-mail account must be setup before a '
'test e-mail can be sent.')
'test email can be sent.')
self.assertEqual(response.data[0], e_msg)

# happy path
Expand Down
4 changes: 2 additions & 2 deletions src/rockstor/storageadmin/views/email_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ def post(self, request, command=None):

if (command == 'send-test-email'):
if (EmailClient.objects.count() == 0):
e_msg = ('E-mail account must be setup before a '
'test e-mail can be sent.')
e_msg = ('Email account must be setup before a '
'test email can be sent.')
handle_exception(Exception(e_msg), request)

eco = EmailClient.objects.all()[0]
Expand Down

0 comments on commit 5fb1963

Please sign in to comment.