forked from hedyorg/hedy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclass-prejoin.html
21 lines (20 loc) · 886 Bytes
/
class-prejoin.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{% extends "auth.html" %}
{% block main %}
<div>
{% if joined %}
<div class="flex flex-col w-full items-center">
<h1>{{_('class_already_joined')}} <i>"{{class_info.name}}"</i></h1>
<div class="w-1/2 mt-2">
<img class="w-full" src="/images/500.png" alt="{{_('error_logo_alt')}}">
</div>
<button class="green-btn" onclick="window.open('/my-profile','_self')">{{_('goto_profile')}}</button>
</div>
{% else %}
<div class="flex flex-col w-full items-center">
<h1 class="mb-4">{{_('prompt_join_class')}}</h1>
<h2 class="mt-0 mb-8">"{{class_info.name}}"</h2>
<button class="green-btn" onclick="hedyApp.join_class ('{{class_info.id}}', '{{class_info.name}}', '{{_('join_prompt')}}')">{{_('join_class')}}</button>
</div>
{% endif %}
</div>
{% endblock %}