-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into add-personal-email
* main: Bump ansi-regex from 4.1.0 to 4.1.1 Bump semver from 5.7.1 to 5.7.2 Run db:migrate Use email variables from method in teacher model Show the current values avaiable in email templates Filter commas from teacher names when sending emails.
- Loading branch information
Showing
6 changed files
with
77 additions
and
37 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
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<hr> | ||
<h3>Allowed Tags</h3> | ||
<p>Use the following tags in the email body. The example shows your current values.</p> | ||
<table class="table table-striped"> | ||
<thead> | ||
<tr> | ||
<th>Key</th> | ||
<th>Value</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<%- current_user.email_attributes.each do |key, value| %> | ||
<tr> | ||
<td><code><%= "{{#{key}}}" %></code></td> | ||
<td><%= value %></td> | ||
</tr> | ||
<%- end %> | ||
<tr> | ||
<td><code>{{bjc_password}}</code></td> | ||
<td>(Should no longer be relevant)</td> | ||
</tr> | ||
<tr> | ||
<td><code>{{piazza_password}}</code></td> | ||
<td>(The current piazza sign up password)</td> | ||
</tr> | ||
<tr> | ||
<td><code>{{reason}}</code></td> | ||
<td>(Only on denial emails.)</td> | ||
</tr> | ||
</tbody> | ||
</table> |
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 |
---|---|---|
|
@@ -43,10 +43,15 @@ | |
|
||
let(:teacher) { teachers(:bob) } | ||
|
||
it "shows email names correct" do | ||
it "formats a proper email name" do | ||
expect(teacher.email_name).to eq "Bob Johnson <[email protected]>" | ||
end | ||
|
||
it "formats a proper email name filtering commas" do | ||
teacher.update(last_name: "Johnson, III") | ||
expect(teacher.email_name).to eq "Bob Johnson III <[email protected]>" | ||
end | ||
|
||
it "should be valid" do | ||
expect(teacher.valid?).to be true | ||
end | ||
|
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 |
---|---|---|
|
@@ -1531,9 +1531,9 @@ ansi-html-community@^0.0.8: | |
integrity sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw== | ||
|
||
ansi-regex@^4.1.0: | ||
version "4.1.0" | ||
resolved "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz" | ||
integrity sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg== | ||
version "4.1.1" | ||
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.1.tgz#164daac87ab2d6f6db3a29875e2d1766582dabed" | ||
integrity sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g== | ||
|
||
ansi-styles@^3.2.0, ansi-styles@^3.2.1: | ||
version "3.2.1" | ||
|
@@ -6275,40 +6275,23 @@ selfsigned@^2.1.1: | |
dependencies: | ||
node-forge "^1" | ||
|
||
semver@^5.5.0: | ||
version "5.7.1" | ||
resolved "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz" | ||
integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== | ||
|
||
semver@^5.6.0: | ||
semver@^5.5.0, semver@^5.6.0: | ||
version "5.7.2" | ||
resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.2.tgz#48d55db737c3287cd4835e17fa13feace1c41ef8" | ||
integrity sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g== | ||
|
||
semver@^6.0.0, semver@^6.3.0: | ||
version "6.3.0" | ||
resolved "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz" | ||
integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== | ||
|
||
semver@^6.3.1: | ||
semver@^6.0.0, semver@^6.3.0, semver@^6.3.1: | ||
version "6.3.1" | ||
resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" | ||
integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== | ||
|
||
semver@^7.3.2: | ||
semver@^7.3.2, semver@^7.3.5: | ||
version "7.5.4" | ||
resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.4.tgz#483986ec4ed38e1c6c48c34894a9182dbff68a6e" | ||
integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA== | ||
dependencies: | ||
lru-cache "^6.0.0" | ||
|
||
semver@^7.3.5: | ||
version "7.3.5" | ||
resolved "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz" | ||
integrity sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ== | ||
dependencies: | ||
lru-cache "^6.0.0" | ||
|
||
[email protected]: | ||
version "0.18.0" | ||
resolved "https://registry.yarnpkg.com/send/-/send-0.18.0.tgz#670167cc654b05f5aa4a767f9113bb371bc706be" | ||
|