Skip to content

Commit

Permalink
💻 If no classes or adventures, show info (#5006)
Browse files Browse the repository at this point in the history
Fixes #4645 

**How to test**
Go to the `/for-teachers` page and remove all classes and adventures. The class info or adventure info is now visible. If you add a class or adventure, the info is not visible. 

<img width="1440" alt="Screenshot 2024-01-18 at 12 07 30" src="https://github.com/hedyorg/hedy/assets/48122190/39a2f4e9-efc1-4ad8-9614-7b15807da6f9">
<img width="1440" alt="Screenshot 2024-01-18 at 12 07 40" src="https://github.com/hedyorg/hedy/assets/48122190/b02c0254-4266-4a60-b152-1900c1066eb6">
  • Loading branch information
Annelein authored Jan 18, 2024
1 parent 6dc97be commit eb6f543
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/for-teachers.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h2 class="m-0"> {{_('my_classes')}} </h2>
</svg>
</button>
</div>
<div class="border border-gray-400 px-4 rounded-lg w-full lg:w-3/4 p-4 text-center hidden" id="classes_info">
<div class="border border-gray-400 px-4 rounded-lg w-full lg:w-3/4 p-4 text-center {% if teacher_classes %}hidden{% endif %}" id="classes_info">
<p>
{{ _('classes_info') }}
</p>
Expand Down Expand Up @@ -66,7 +66,7 @@ <h2 class="m-0"> {{_('my_adventures')}} </h2>
</svg>
</button>
</div>
<div class="border border-gray-400 px-4 rounded-lg w-full lg:w-3/4 p-4 text-center hidden" id="adventures_info">
<div class="border border-gray-400 px-4 rounded-lg w-full lg:w-3/4 p-4 text-center {% if teacher_adventures %}hidden{% endif %}" id="adventures_info">
<p>
{{ _('adventures_info') }}
</p>
Expand Down

0 comments on commit eb6f543

Please sign in to comment.