-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added engineering garage as a service space * Added config for app and made sure things are using it * Removed deploy.rb * Added more config * Fixed error * Removed maker request from engineering garage and updated nav bar * Removed HRC stuff from non innovation studio spaces * Removed tours from non innovation studio spaces * Remove export from non innovation studio spaces * Remove training docs from non innovation studio spaces * Moved emails to template files * Use config values * Removed old font references, added npm to compile less * Updated innovation studio css to main css, added cache busting to config * Moved email templates to sub-folder, updated templates * Make sure users are in this service space * Split items per service space * Added service space to studio spaces, email presets, and event presets * Fix email template paths * Fix color of tool reservation calendar block * Added conditional if captcha site key is empty * Added new event types and added displays for training and workshops * Updated alerts and my alerts * Updated footers * Added email templates for engineering garage * Fixed no toolbar view and removed unused erb file * Fix announcement notice * default config * Updated DB dump and readme * Fix config stuff * Fix more config stuff * Remove duplicate double slash * Make sure to check the user has an email before sending it * Updated readme * Added section for email testing * remove stank from readme file * Remove Stank * Fixed sample files * Added missing require statements in scripts * Fix logic for setting dates on load * Added attended orientation email * Added logic for active/inactive users and prevent inactive users from doing things * Moved active to it's own DB column * Remove active check for things
- Loading branch information
Showing
115 changed files
with
2,177 additions
and
812 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ | |
/public/wdn | ||
/db/scripts/private/ | ||
.idea | ||
node_modules | ||
|
||
## Service start up configs | ||
.config | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ def self.mail(to, subject, body, bcc = "", attachments = nil) | |
:bcc => bcc_group, | ||
:subject => subject, | ||
:html_body => body, | ||
:from => '[email protected]', | ||
:from => CONFIG['app']['email_from'], | ||
:via => self.method, | ||
:via_options => self.method_options, | ||
:attachments => attachments | ||
|
@@ -40,7 +40,7 @@ def self.mail(to, subject, body, bcc = "", attachments = nil) | |
:bcc => bcc, | ||
:subject => subject, | ||
:html_body => body, | ||
:from => '[email protected]', | ||
:from => CONFIG['app']['email_from'], | ||
:via => self.method, | ||
:via_options => self.method_options, | ||
:attachments => attachments | ||
|
@@ -69,18 +69,21 @@ def self.breakup_recipient(recipient) | |
|
||
def self.method | ||
if ENV['RACK_ENV'] == 'development' | ||
:sendmail | ||
# :smtp | ||
if CONFIG['email']['via'] == ":smtp" | ||
:smtp | ||
else | ||
:sendmail | ||
end | ||
else | ||
:sendmail | ||
end | ||
end | ||
|
||
def self.method_options | ||
if ENV['RACK_ENV'] == 'development' | ||
if ENV['RACK_ENV'] == 'development' && !CONFIG['email']['via_address'].empty? | ||
{ | ||
:address => '127.0.0.1', | ||
:port => '1025' | ||
:address => CONFIG['email']['via_address'], | ||
:port => CONFIG['email']['via_port'] | ||
} | ||
else | ||
{} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,5 +10,17 @@ | |
"reCaptcha" : { | ||
"site_key" : "", | ||
"secret_key" : "" | ||
}, | ||
"app" : { | ||
"service_space_id": "1", | ||
"URL": "https://innovationstudio-manager.unl.edu/", | ||
"cookie_domain": "innovationstudio-manager.unl.edu", | ||
"email_from": "[email protected]", | ||
"cb_version": "2024022701" | ||
}, | ||
"email" : { | ||
"via": ":smtp", | ||
"via_address": "localhost", | ||
"via_port": "25" | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
INSERT INTO `service_spaces` (`id`, `name`, `url_name`, `imagedata`, `imagemime`) VALUES | ||
(8, 'Engineering Garage', NULL, NULL, NULL); | ||
|
||
ALTER TABLE `preset_events` ADD COLUMN `service_space_id` int(11) DEFAULT 1; | ||
ALTER TABLE `preset_emails` ADD COLUMN `service_space_id` int(11) DEFAULT 1; | ||
ALTER TABLE `studio_spaces` ADD COLUMN `service_space_id` int(11) DEFAULT 1; | ||
|
||
INSERT INTO `studio_spaces` (`name`, `service_space_id`) VALUES | ||
('Engineering Garage', 8); | ||
|
||
INSERT INTO `event_types` (`id`, `description`, `service_space_id`) VALUES | ||
(12, 'New Membership Orientation', 8); | ||
|
||
INSERT INTO `event_types` (`id`, `description`, `service_space_id`) VALUES | ||
(13, 'Machine Training', 8); | ||
|
||
INSERT INTO `event_types` (`id`, `description`, `service_space_id`) VALUES | ||
(14, 'General Workshop', 8); | ||
|
||
ALTER TABLE `users` ADD COLUMN `active` tinyint(1) DEFAULT 0; | ||
UPDATE `users` SET `active` = 1; |
Oops, something went wrong.