Skip to content

Commit

Permalink
Merge pull request #95 from ncsa/72-enable-email-sending
Browse files Browse the repository at this point in the history
72 enable email sending
  • Loading branch information
longshuicy authored Sep 14, 2023
2 parents 67da0b7 + fde0cff commit 6dfdbbe
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 15 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Github action to auto generate docker container [#93](https://github.com/ncsa/standalone-smm-smile/issues/93)

### Added
- Enable email sending [#72](https://github.com/ncsa/standalone-smm-smile/issues/72)

## [0.2.9]
### Added
- Environment variable to turn Clowder on and off [#86](https://github.com/ncsa/standalone-smm-smile/issues/86)
Expand Down
4 changes: 1 addition & 3 deletions www/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ if (process.env.DOCKERIZED === 'true') {
CLOWDER_ON = process.env.CLOWDER_ON;

if (process.env.EMAIL_HOST === "" || process.env.EMAIL_HOST === undefined || process.env.EMAIL_HOST === null ||
process.env.EMAIL_PORT === "" || process.env.EMAIL_PORT === undefined || process.env.EMAIL_PORT === null ||
process.env.EMAIL_FROM_ADDRESS === "" || process.env.EMAIL_FROM_ADDRESS === undefined || process.env.EMAIL_FROM_ADDRESS === null ||
process.env.EMAIL_PASSWORD === "" || process.env.EMAIL_PASSWORD === undefined || process.env.EMAIL_PASSWORD === null) {
process.env.EMAIL_FROM_ADDRESS === "" || process.env.EMAIL_FROM_ADDRESS === undefined || process.env.EMAIL_FROM_ADDRESS === null) {
email = false;
}

Expand Down
4 changes: 0 additions & 4 deletions www/views/components/aws-batch.pug
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ div(id="aws-batch" class="modal fade" role="dialog" data-backdrop="static" data-
p The algorithm or dataset you selected exceeds the limitation for realtime process.
| We will have to place this on a job queue.
| Once your computation job has succeeded, we will email you with instructions to review your results.
img(src="bootstrap/img/gifs/warning.gif",style="width:15px;")
p(style="display:inline;color:red;")
b You may feel free to leave this page or close your browser.
| BUT DO NOT TERMINATE THIS SESSION AFTER SUBMITTING THIS JOB!
div(class="form-group")
label(class="control-label col-md-4 col-md-4 col-xs-12") Dataset
div(class="col-md-8 col-md-8 col-xs-12")
Expand Down
4 changes: 0 additions & 4 deletions www/views/components/image-crawler.pug
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ div(id="image-crawler" class="modal fade" role="dialog" data-backdrop="static" d
div(class="form-group")
p Once you submit the request, we will place it on a job queue.
| Further instructions will be sent to you via email once the collection is completed.
img(src="bootstrap/img/gifs/warning.gif", style="width:15px;")
p(style="display:inline;color:red;")
b You may feel free to leave this page or close your browser.
| BUT DO NOT TERMINATE THIS SESSION AFTER SUBMITTING THIS JOB!
div(class="form-group")
label(class="control-label col-md-4 col-md-4 col-xs-12") Dataset
div(class="col-md-8 col-md-8 col-xs-12")
Expand Down
4 changes: 0 additions & 4 deletions www/views/components/reddit-expand.pug
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ div(id="reddit-expand" class="modal fade" role="dialog" data-backdrop="static" d
p Your selected dataset contains hundreds/thousands Reddit post, and for each reddit post, it might have thousands of comments and replies.
| This process is very time consuming. Once you submit the request, we will have to place this on a job queue.
| We will email you with further instruction when the collection is completed.
img(src="bootstrap/img/gifs/warning.gif",style="width:15px;")
p(style="display:inline;color:red;")
b You may feel free to leave this page or close your browser.
| BUT DO NOT TERMINATE THIS SESSION AFTER SUBMITTING THIS JOB!
div(class="form-group")
label(class="control-label col-md-4 col-md-4 col-xs-12",for="") Dataset
div(class="col-md-8 col-md-8 col-xs-12")
Expand Down

0 comments on commit 6dfdbbe

Please sign in to comment.