forked from TUM-Dev/gocast
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Further course import improvements (TUM-Dev#717)
* add opt out page * fix some minor issues * add opt out to mail
- Loading branch information
1 parent
7b3de4d
commit d94bd67
Showing
8 changed files
with
124 additions
and
10 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
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,35 @@ | ||
{{- /*gotype: github.com/joschahenningsen/TUM-Live/web.OptOutPageData*/ -}} | ||
<!DOCTYPE html> | ||
<html lang="en" class="dark"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Edit Course | TUM Live</title> | ||
{{template "headImports" .IndexData.VersionTag}} | ||
</head> | ||
|
||
<body x-data> | ||
{{template "header" .IndexData.TUMLiveContext}} | ||
{{if and .Course (not .Course.Model.DeletedAt.Valid)}} | ||
<div class="text-1 container mx-auto w-full" x-data="{success: false}"> | ||
<p x-show="!success"> | ||
Please confirm deleting the course <span class="font-semibold">{{.Course.Name}}</span>. | ||
<br> | ||
This will disable live-streaming and recordings of your lectures. | ||
<br> | ||
<button class="mt-4 w-auto m-auto bg-danger rounded px-5 py-2 font-semibold text-white" | ||
@click="fetch('/api/course/by-token/{{.Course.Model.ID}}?token='+(new URLSearchParams(window.location.search)).get('token'), {method: 'DELETE'}).then(r=>{if(r.status===200){success=true;}else{alert('Something went wrong, please reach out to us.')}})"> | ||
Confirm | ||
</button> | ||
</p> | ||
<p x-show="success" class="font-semibold"> | ||
Your course was deleted successfully. | ||
</p> | ||
</div> | ||
{{else}} | ||
<p class="text-1 container mx-auto w-full"> | ||
There was an issue finding your course. Maybe you already opted out. If not please reach out to us. | ||
</p> | ||
{{end}} | ||
</body> | ||
|
||
</html> |