Skip to content

Commit

Permalink
Remove Course Reviews raffle copy (#447)
Browse files Browse the repository at this point in the history
This PR removes the raffle copy from the `/services/courses` page and
the 'add new review' form.

I've left the email functionality in the Worker for now. We can reuse it
if we plan to run something like this again in coming terms.

Will self-approve this PR.
  • Loading branch information
kewbish committed May 7, 2023
1 parent 7925331 commit 571d3e7
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 35 deletions.
4 changes: 1 addition & 3 deletions assets/js/create-github-pr.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ const createGithubPR = async () => {
const quality = document.getElementById("github-pr-quality").value;
const sessionTaken =
document.getElementById("github-pr-year-taken").value + document.getElementById("github-pr-session-taken").value;
const email = document.getElementById("github-pr-raffle-email").value;

// check if reCAPTCHA has been completed
const token = grecaptcha.getResponse();
Expand All @@ -83,8 +82,7 @@ const createGithubPR = async () => {
reference: reference,
difficulty: difficulty,
quality: quality,
sessionTaken: sessionTaken,
email: email
sessionTaken: sessionTaken
}
})
});
Expand Down
7 changes: 0 additions & 7 deletions content/services/courses/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@ location:
name: Write a course review!
---

<div class="card mb-3">
<div class="card-body">
<span class="badge bg-primary me-1">New!</span>
Want to win fun prizes and share your thoughts on CPSC courses? Each course review is an entry to win 50% off a CSSS hoodie ($22.50 value) or one of five $10 AMS gift cards! Maximum five entries per person. Raffle will take place at the end of the 2022W2 term.
</div>
</div>

Here you can find a collection of course reviews and descriptions from UBC students and TAs, sorted by year. Some have been sourced from Reddit and student websites. Students who are interested in contributing may edit the page with the "Edit on Github" link or fill the form to create a Github issue that will be reviewed by an officer.

_NOTE_: These reviews and descriptions are here as reference ONLY. Course content vary from year to year, so any materials on this website might be out of date. We are not responsible for any mistakes in the reviews and descriptions provided herein; however, we will accept notifications as such so we can place appropriate notices.
25 changes: 0 additions & 25 deletions themes/hugo-bootstrap-5/layouts/partials/github-pr-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,31 +116,6 @@ <h3>Add a Review for this course</h3>
<small id="github-pr-quality-label" style="width: 3rem">3</small>
</div>
</div>
<div class="my-3">
<label for="raffle-email" class="form-label">
Raffle Email (Optional)
<span class="badge bg-primary">New!</span>
</label>
<p>
<small class="text-muted"
>Enter your UBC CWL email here to enter in a raffle to win 50% off a
CSSS Hoodie ($22.50 value) or one of five $10 AMS gift cards! Each
course review is an entry in the raffle, with a maximum of five
entries per person. Raffle will take place at the end of the 2022W2
term. This email will not be visible on the published review.</small
>
</p>
<div class="d-flex gap-2">
<input
class="form-control"
type="text"
pattern=".*@(student\.|alumni\.)?ubc\.ca"
id="github-pr-raffle-email"
placeholder="Enter your UBC CWL email"
style="width: fit-content;" />
<div class="invalid-feedback">Email must end in ubc.ca.</div>
</div>
</div>
<div
class="g-recaptcha my-3"
data-sitekey="{{ .Site.Params.recaptchaSiteKey }}"></div>
Expand Down

0 comments on commit 571d3e7

Please sign in to comment.