Changed Appreciation to Jr High Summer; Fixed sorting of internships such that changes get properly sorted; Added a proper date on news & notices on the home page using the page's update timestamp.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { AccountsTemplates } from 'meteor/useraccounts:core';
|
||||
|
||||
AccountsTemplates.configure({
|
||||
enablePasswordChange: true, //Allow the user to change their password via the login UI.
|
||||
forbidClientAccountCreation: true, //Turn off client side account creation. The app is expected to have a feature that will do this.
|
||||
showForgotPasswordLink: true,
|
||||
defaultTemplate: 'OverrideAtForm',
|
||||
@@ -11,7 +12,11 @@ AccountsTemplates.configure({
|
||||
// defaultLayout: 'Body',
|
||||
// defaultContentRegion: 'content',
|
||||
// defaultLayoutRegions: {}
|
||||
homeRoutePath: '/Admin/InternshipJobs', //The path where the user is taken after logging in successfully.
|
||||
homeRoutePath: '/Admin/Internships', //The path where the user is taken after logging in successfully. Unfortunately this is also used for the path when logging out, so we must override that function with an onLogoutHook.
|
||||
onLogoutHook: function() {
|
||||
FlowRouter.go("/");
|
||||
},
|
||||
|
||||
texts: {
|
||||
title: {
|
||||
signIn: ""
|
||||
|
||||
@@ -27,6 +27,10 @@ AccountsTemplates.configureRoute('forgotPwd', {
|
||||
name: 'ForgotPwd',
|
||||
path: '/ForgotPwd'
|
||||
});
|
||||
AccountsTemplates.configureRoute('changePwd', {
|
||||
name: 'ChangePwd',
|
||||
path: '/ChangePwd'
|
||||
});
|
||||
|
||||
pri.route("/Admin/Internships", {
|
||||
name: "InternshipsEditor",
|
||||
@@ -56,8 +60,8 @@ pri.route("/Admin/UserManagement", {
|
||||
BlazeLayout.render("Admin", {content: "UserManagement"});
|
||||
}
|
||||
});
|
||||
pri.route("/Admin/Appreciation", {
|
||||
name: "AppreciationEditor",
|
||||
pri.route("/Admin/JrHighSummer", {
|
||||
name: "JrHighSummerEditor",
|
||||
action: function(params, queryParams) {
|
||||
require("/imports/ui/Admin/PageEditor.js");
|
||||
BlazeLayout.render("Admin", {content: "PageEditor"});
|
||||
@@ -187,8 +191,8 @@ pub.route("/PhotoGallery", {
|
||||
BlazeLayout.render("Public", {content: "PhotoGallery"});
|
||||
}
|
||||
});
|
||||
pub.route("/Appreciation", {
|
||||
name: 'Appreciation',
|
||||
pub.route("/JrHighSummer", {
|
||||
name: 'JrHighSummer',
|
||||
action: function(params, queryParams) {
|
||||
require("/imports/ui/EditablePage.js");
|
||||
BlazeLayout.render("Public", {content: "EditablePage"});
|
||||
|
||||
@@ -1,6 +1,32 @@
|
||||
|
||||
Accounts.emailTemplates.from = "Do Not Reply <administrator@declarativeengineering.com>";
|
||||
Accounts.emailTemplates.siteName = "Petit Teton App";
|
||||
Accounts.emailTemplates.from = "Do Not Reply <no-reply@andersonvalleyeducation.org>";
|
||||
Accounts.emailTemplates.siteName = "Anderson Valley Education Foundation";
|
||||
|
||||
Accounts.emailTemplates.resetPassword.txt = function(user, url) {
|
||||
let result;
|
||||
|
||||
result = "Hello,\n\
|
||||
\n\
|
||||
To reset your password, simply click the link below\n\
|
||||
\n\
|
||||
" + url.replace("#/reset-password","ResetPwd") + "\n\
|
||||
\n\
|
||||
Thank you,\n\
|
||||
\tAnderson Valley Education Foundation";
|
||||
|
||||
return result;
|
||||
};
|
||||
Accounts.emailTemplates.resetPassword.html = function(user, url) {
|
||||
let result;
|
||||
|
||||
result = "<p>Hello,</p>\
|
||||
<p>To reset your password, simply click the link below</p>\
|
||||
<a href='" + url.replace("#/reset-password","ResetPwd") + "'>Reset Link</a>\
|
||||
<p>Thank you,<br/>\
|
||||
<span style='text-indent: 20px'>Anderson Valley Education Foundation</span></p>";
|
||||
|
||||
return result;
|
||||
};
|
||||
// Accounts.emailTemplates.verifyEmail.subject = function (user) {
|
||||
// return "Welcome to My Site! Please verify your email";
|
||||
// };
|
||||
|
||||
Reference in New Issue
Block a user